unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH v1] emacs: Forwarded messages should not have modified buffers
@ 2014-06-02  9:40 David Edmondson
  2014-06-02 12:55 ` Tomi Ollila
  2014-06-15 20:31 ` David Bremner
  0 siblings, 2 replies; 9+ messages in thread
From: David Edmondson @ 2014-06-02  9:40 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 95e4a4d..2c58886 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -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.
-- 
2.0.0.rc2


[-- Attachment #2: Type: application/pgp-signature, Size: 310 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-23  9:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02  9:40 [PATCH v1] emacs: Forwarded messages should not have modified buffers David Edmondson
2014-06-02 12:55 ` Tomi Ollila
2014-06-02 13:43   ` Mark Walters
2014-06-15 20:31 ` David Bremner
2014-06-16  5:30   ` David Edmondson
2014-06-22 10:44     ` David Bremner
2014-06-22 11:44       ` Tomi Ollila
2014-06-23  8:38       ` David Edmondson
2014-06-23  9:51         ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).