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

@@ -18,12 +18,12 @@
Uses the capture template specified by KEY. Otherwise, prompts you for one."
(interactive)
(let ((key (or key "n")))
(if-let (string (cond ((not (equal string ""))
string)
((region-active-p)
(buffer-substring-no-properties
(region-beginning)
(region-end)))))
(if-let* ((string (cond ((not (equal string ""))
string)
((region-active-p)
(buffer-substring-no-properties
(region-beginning)
(region-end))))))
(org-capture-string string key)
(org-capture nil key))))