mu4e: Avoid if-let.
For compatibility with pre-25 Emacs.
This commit is contained in:
@ -175,8 +175,9 @@ messages - for example, `mu4e-org'."
|
|||||||
;; not, when the policy is 'ask'. we simply assume the user said yes... the
|
;; 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
|
;; alternative would be to ask for each message, encrypted or not. maybe we
|
||||||
;; need an extra policy...
|
;; need an extra policy...
|
||||||
(if-let ((view-buffer (get-buffer "*mu4e-view*")))
|
(let ((view-buffer (get-buffer "*mu4e-view*")))
|
||||||
(kill-buffer view-buffer))
|
(when view-buffer
|
||||||
|
(kill-buffer view-buffer)))
|
||||||
(mu4e~proc-view msgid mu4e-view-show-images mu4e-decryption-policy))
|
(mu4e~proc-view msgid mu4e-view-show-images mu4e-decryption-policy))
|
||||||
|
|
||||||
(defun mu4e~view-custom-field (msg field)
|
(defun mu4e~view-custom-field (msg field)
|
||||||
|
|||||||
Reference in New Issue
Block a user