Skip to content

Commit 8401323

Browse files
committed
Merge pull request #686 from tsdh/master
Allow third value 'tidy for cider-macroexpansion-suppress-namespaces.
2 parents 84999fc + bec3533 commit 8401323

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

cider-macroexpansion.el

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,19 @@
3636

3737
(push cider-macroexpansion-buffer cider-ancilliary-buffers)
3838

39-
(defcustom cider-macroexpansion-suppress-namespaces nil
40-
"When non-nil namespaces won't be displayed in the macroexpansion buffer."
41-
:type 'boolean
39+
(defcustom cider-macroexpansion-suppress-namespaces 'tidy
40+
"Determines if namespaces are displayed in the macroexpansion buffer.
41+
Possible values are:
42+
43+
nil ;=> Vars are fully-qualified in the expansion
44+
t ;=> Vars are displayed without namespace qualification
45+
'tidy ;=> Vars that are :refer-ed or defined in the current namespace are
46+
displayed with their simple name, non-refered vars from other
47+
namespaces are refered using the alias for that namespace (if
48+
defined), other vars are displayed fully qualified."
49+
:type '(choice (const :tag "Suppress namespaces" t)
50+
(const :tag "Show namespaces" nil)
51+
(const :tag "Show namespace aliases" tidy))
4252
:group 'cider
4353
:package-version '(cider . "0.7.0"))
4454

0 commit comments

Comments
 (0)