]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Forwarded messages should not have modified buffers
authorDavid Edmondson <dme@dme.org>
Mon, 16 Jun 2014 05:30:11 +0000 (06:30 +0100)
committerDavid Bremner <david@tethera.net>
Sun, 22 Jun 2014 10:41:49 +0000 (07:41 -0300)
When the user begins forwarding a message, the resulting composition
buffer should not be marked as modified, in order that it can
immediately be killed without prompting.

emacs/notmuch-mua.el

index 95e4a4d33ae2933e9503b818a6a6269fc6d33311..2c5888600b6c6d2af795b39302d061935cf7aa0b 100644 (file)
@@ -346,7 +346,8 @@ the From: address first."
     (message-forward-make-body cur)
     ;; `message-forward-make-body' shows the User-agent header.  Hide
     ;; it again.
-    (message-hide-headers)))
+    (message-hide-headers)
+    (set-buffer-modified-p nil)))
 
 (defun notmuch-mua-new-reply (query-string &optional prompt-for-sender reply-all)
   "Compose a reply to the message identified by QUERY-STRING.