Skip to content

Commit 04fcaa5

Browse files
author
Bozhidar Batsov
committed
Make namespace display in the macroexpansion buffer configurable
1 parent 04a335d commit 04fcaa5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cider-macroexpansion.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
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
42+
:group 'cider
43+
:package-version '(cider . "0.7.0"))
44+
3945
(defun cider-macroexpand-undo (&optional arg)
4046
"Undo the last macroexpansion, using `undo-only'.
4147
ARG is passed along to `undo-only'."
@@ -54,7 +60,7 @@ This variable specifies both what was expanded and the expander.")
5460
(list "op" expander
5561
"code" expr
5662
"ns" (cider-current-ns)
57-
"suppress-namespaces" "false")) :value))
63+
"suppress-namespaces" cider-macroexpansion-suppress-namespaces)) :value))
5864

5965
(defun cider-macroexpand-expr (expander expr)
6066
"Macroexpand, use EXPANDER, the given EXPR."

0 commit comments

Comments
 (0)