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-repl-history.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-repl-history.el')
-rw-r--r-- | cider-repl-history.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cider-repl-history.el b/cider-repl-history.el index 6a9cdfec..834aff2e 100644 --- a/cider-repl-history.el +++ b/cider-repl-history.el @@ -426,7 +426,7 @@ text is still inserted at the end." (defun cider-repl-history-update-highlighed-entry () "Update highlighted entry, when feature is turned on." (when cider-repl-history-highlight-current-entry - (if-let ((current-overlay (cider-repl-history-target-overlay-at (point) t))) + (if-let* ((current-overlay (cider-repl-history-target-overlay-at (point) t))) (unless (equal cider-repl-history-previous-overlay current-overlay) ;; We've changed overlay. Clear current highlighting, ;; and highlight the new overlay. |