From: David Edmondson <dme@dme.org>
To: David Bremner <david@tethera.net>
Cc: notmuch@notmuchmail.org
Subject: [PATCH v1] emacs: Forwarded messages should not have modified buffers
Date: Mon, 16 Jun 2014 06:30:11 +0100 [thread overview]
Message-ID: <1E19E1E0-044E-4616-B951-FC8FEFA49071@dme.org> (raw)
In-Reply-To: <87wqch5309.fsf@zancas.localnet>
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
next prev parent reply other threads:[~2014-06-16 5:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1E19E1E0-044E-4616-B951-FC8FEFA49071@dme.org \
--to=dme@dme.org \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).