From 7d895dbd699062c71aca3f5d00907e989531506c Mon Sep 17 00:00:00 2001 From: djcb Date: Sat, 18 Mar 2017 10:07:12 +0200 Subject: [PATCH] mu4e: widen buffer after save Otherwise, undo won't work. Fixes issue #1047. --- mu4e/mu4e-compose.el | 1 + 1 file changed, 1 insertion(+) diff --git a/mu4e/mu4e-compose.el b/mu4e/mu4e-compose.el index 077b0e3a..a5547448 100644 --- a/mu4e/mu4e-compose.el +++ b/mu4e/mu4e-compose.el @@ -285,6 +285,7 @@ appear on disk." (mu4e~draft-insert-mail-header-separator) ;; hide some headers again (mu4e~compose-hide-headers) + (widen) (set-buffer-modified-p nil) (mu4e-message "Saved (%d lines)" (count-lines (point-min) (point-max))) ;; update the file on disk -- ie., without the separator