File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 47
47
* Middleware support for Piggieback 0.2.x.
48
48
* In the namespace browser, ` d ` and ` s ` are now bound to show the documentation
49
49
or the source respectively for the symbol at point.
50
+ * [ #1090 ] ( https://github.com/clojure-emacs/cider/issues/1090 ) : New defcustom, ` cider-macroexpansion-print-metadata ` (boolean.)
51
+ Controls whether metadata of forms is included in macroexpansion results. Defaults to nil.
50
52
51
53
### Changes
52
54
Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ Possible values are:
57
57
'cider-macroexpansion-display-namespaces
58
58
" 0.8.0" )
59
59
60
+ (defcustom cider-macroexpansion-print-metadata nil
61
+ " Determines if metadata is included in macroexpansion results."
62
+ :type 'boolean
63
+ :group 'cider
64
+ :package-version '(cider . " 0.9.0" ))
65
+
60
66
(defun cider-sync-request:macroexpand (expander expr &optional display-namespaces )
61
67
" Macroexpand, using EXPANDER, the given EXPR.
62
68
The default for DISPLAY-NAMESPACES is taken from
@@ -69,6 +75,8 @@ The default for DISPLAY-NAMESPACES is taken from
69
75
" display-namespaces"
70
76
(or display-namespaces
71
77
(symbol-name cider-macroexpansion-display-namespaces)))
78
+ (append (when cider-macroexpansion-print-metadata
79
+ (list " print-meta" " true" )))
72
80
(nrepl-send-sync-request)
73
81
(nrepl-dict-get " expansion" )))
74
82
You can’t perform that action at this time.
0 commit comments