emacs: Forwarded messages should not have modified buffers

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.
This commit is contained in:
David Edmondson 2014-06-16 06:30:11 +01:00 committed by David Bremner
parent cc2722ba9e
commit b732a58a00

View 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.