From 700e5e76dac7a56c6f34233890fb7947a4d65419 Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 7 Nov 2018 21:24:02 +0200 Subject: [PATCH] mu4e-view: switch mode before filling message That way, the attachment map etc. stay valid. --- mu4e/mu4e-view.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 1dead77c..d11c4d8e 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -338,8 +338,8 @@ article-mode." (when (or embedded (not (mu4e~view-mark-as-read-maybe msg))) (erase-buffer) (mu4e~delete-all-overlays) - (insert (mu4e-view-message-text msg)) (mu4e-view-mode) + (insert (mu4e-view-message-text msg)) (goto-char (point-min)) (mu4e~fontify-cited) (mu4e~fontify-signature)