mu4e: activate mode before getting attachments/links

So the relevant hash-maps are valid (they would be nillified by changing
the mode otherwise).
This commit is contained in:
djcb 2018-08-16 22:48:20 +03:00
parent 16619cb9a1
commit 1d0b24afcf
1 changed files with 2 additions and 2 deletions

View File

@ -338,6 +338,7 @@ article-mode."
(when (or embedded (not (mu4e~view-mark-as-read-maybe msg)))
(erase-buffer)
(mu4e~delete-all-overlays)
(mu4e-view-mode)
(insert (mu4e-view-message-text msg))
(goto-char (point-min))
(mu4e~fontify-cited)
@ -345,8 +346,7 @@ article-mode."
(mu4e~view-make-urls-clickable)
(mu4e~view-show-images-maybe msg)
(when embedded (local-set-key "q" 'kill-buffer-and-window))
(when (not embedded) (setq mu4e~view-msg msg))
(mu4e-view-mode)))
(when (not embedded) (setq mu4e~view-msg msg))))
(switch-to-buffer buf))))
(defun mu4e~view-gnus (msg)