Fix obsolete (when|if)-let messages in Emacs 26

This commit is contained in:
Henrik Lissner
2017-12-10 14:49:52 -05:00
parent e168118243
commit 76a4ae459d
40 changed files with 110 additions and 103 deletions

View File

@@ -12,7 +12,7 @@ private/hlissner/snippets."
(defun +hlissner/yank-buffer-filename ()
"Copy the current buffer's path to the kill ring."
(interactive)
(if-let (filename (or buffer-file-name (bound-and-true-p list-buffers-directory)))
(if-let* ((filename (or buffer-file-name (bound-and-true-p list-buffers-directory))))
(message (kill-new (abbreviate-file-name filename)))
(error "Couldn't find filename in current buffer")))