summaryrefslogtreecommitdiff
path: root/cider-classpath.el
diff options
context:
space:
mode:
authorTianxiang Xiong <tianxiang.xiong@gmail.com>2017-12-11 01:17:50 -0800
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2017-12-11 16:09:54 +0000
commitb34057a1944354cbd2100e2beb08d6c6e1e06da3 (patch)
treea033bdacf950d04623b1f78824c171ee7dceab07 /cider-classpath.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: http://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-26#n1278
Diffstat (limited to 'cider-classpath.el')
-rw-r--r--cider-classpath.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/cider-classpath.el b/cider-classpath.el
index 831d6d59..5dbbf3b0 100644
--- a/cider-classpath.el
+++ b/cider-classpath.el
@@ -104,7 +104,7 @@
(interactive)
(cider-ensure-connected)
(cider-ensure-op-supported "classpath")
- (when-let ((entry (completing-read "Classpath entries: " (cider-sync-request:classpath))))
+ (when-let* ((entry (completing-read "Classpath entries: " (cider-sync-request:classpath))))
(find-file-other-window entry)))
(provide 'cider-classpath)