diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2015-11-14 09:17:23 +0200 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2015-11-14 09:17:23 +0200 |
commit | ab81d7ff3ef791e12547600809486b54258d8737 (patch) | |
tree | b6c57ad9e78f250a83dfa791bec1e034d863b174 | |
parent | 7141d04028237602e3fe5c2b3e8cce2334cb1472 (diff) |
[#1381] Don't show the macroexpansion buffer on errors
-rw-r--r-- | cider-macroexpansion.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cider-macroexpansion.el b/cider-macroexpansion.el index 4285d9c1..d13de313 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." - (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)))) |