path: root/cider-macroexpansion.el
diff options
authorTianxiang Xiong <>2017-12-11 01:17:50 -0800
committerBozhidar Batsov <>2017-12-11 16:09:54 +0000
commitb34057a1944354cbd2100e2beb08d6c6e1e06da3 (patch)
treea033bdacf950d04623b1f78824c171ee7dceab07 /cider-macroexpansion.el
parentb484daa718c09c3d41e260878f93a35f05edb5b4 (diff)
Replace `if-let` and `when-let` with starred versions
Fix #2130. Emacs 26 obsoletes `if-let` and `when-let`, replacing them with `if-let*` and `when-let*`. This raises byte-compilation warnings (treated as errors) when testing against Emacs 26. See:
Diffstat (limited to 'cider-macroexpansion.el')
1 files changed, 1 insertions, 1 deletions
diff --git a/cider-macroexpansion.el b/cider-macroexpansion.el
index 82ba966d..6f0dab54 100644
--- a/cider-macroexpansion.el
+++ b/cider-macroexpansion.el
@@ -89,7 +89,7 @@ This variable specifies both what was expanded and the expander.")
(defun cider-macroexpand-expr (expander expr)
"Macroexpand, use EXPANDER, the given EXPR."
- (when-let ((expansion (cider-sync-request:macroexpand expander expr)))
+ (when-let* ((expansion (cider-sync-request:macroexpand expander expr)))
(setq cider-last-macroexpand-expression expr)
(cider-initialize-macroexpansion-buffer expansion (cider-current-ns))))