diff options
author | Tianxiang Xiong <tianxiang.xiong@gmail.com> | 2017-12-11 01:17:50 -0800 |
---|---|---|
committer | Bozhidar Batsov <bozhidar.batsov@gmail.com> | 2017-12-11 16:09:54 +0000 |
commit | b34057a1944354cbd2100e2beb08d6c6e1e06da3 (patch) | |
tree | a033bdacf950d04623b1f78824c171ee7dceab07 /cider-grimoire.el | |
parent | b484daa718c09c3d41e260878f93a35f05edb5b4 (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-grimoire.el')
-rw-r--r-- | cider-grimoire.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cider-grimoire.el b/cider-grimoire.el index 8dc61733..959f99ea 100644 --- a/cider-grimoire.el +++ b/cider-grimoire.el @@ -58,7 +58,7 @@ (defun cider-grimoire-web-lookup (symbol) "Open the grimoire documentation for SYMBOL in a web browser." - (if-let ((var-info (cider-var-info symbol))) + (if-let* ((var-info (cider-var-info symbol))) (let ((name (nrepl-dict-get var-info "name")) (ns (nrepl-dict-get var-info "ns"))) (browse-url (cider-grimoire-url name ns))) @@ -95,7 +95,7 @@ opposite of what that option dictates." If SYMBOL is a special form, the clojure.core ns is used, as is Grimoire's convention." - (if-let ((var-info (cider-var-info symbol))) + (if-let* ((var-info (cider-var-info symbol))) (let ((name (nrepl-dict-get var-info "name")) (ns (nrepl-dict-get var-info "ns" "clojure.core")) (url-request-method "GET") |