mu4e: Avoid if-let.

For compatibility with pre-25 Emacs.
This commit is contained in:
Titus von der Malsburg 2015-07-03 10:10:15 -07:00
parent d9e0bf7c6f
commit ccfdf02a23
1 changed files with 3 additions and 2 deletions

View File

@ -175,8 +175,9 @@ messages - for example, `mu4e-org'."
;; not, when the policy is 'ask'. we simply assume the user said yes... the
;; alternative would be to ask for each message, encrypted or not. maybe we
;; need an extra policy...
(if-let ((view-buffer (get-buffer "*mu4e-view*")))
(kill-buffer view-buffer))
(let ((view-buffer (get-buffer "*mu4e-view*")))
(when view-buffer
(kill-buffer view-buffer)))
(mu4e~proc-view msgid mu4e-view-show-images mu4e-decryption-policy))
(defun mu4e~view-custom-field (msg field)