From: Todd <todd@electricoding.com>
To: notmuch@notmuchmail.org
Subject: [PATCH v2] emacs: Use the message cite variable
Date: Fri, 9 Jan 2015 17:37:07 -0600 [thread overview]
Message-ID: <1420846627-31763-1-git-send-email-todd@electricoding.com> (raw)
In-Reply-To: <m2k30wukes.fsf@guru.guru-group.fi>
I checked in the Emacs 22.1 source code, and there it was a defaulted
to message-cite-original as well. This patch falls back to
message-cite-original in the unlikely case that someone has customized
message-cite-function to nil.
- Todd
---
emacs/notmuch-mua.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 2c58886..2a01455 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -220,8 +220,8 @@ list."
(date (plist-get original-headers :Date))
(start (point)))
- ;; message-cite-original constructs a citation line based on the From and Date
- ;; headers of the original message, which are assumed to be in the buffer.
+ ;; message-cite-function should construct a citation line based on the From and
+ ;; Date headers of the original message, which are assumed to be in the buffer.
(insert "From: " from "\n")
(insert "Date: " date "\n\n")
@@ -233,7 +233,7 @@ list."
(set-mark (point))
(goto-char start)
;; Quote the original message according to the user's configured style.
- (message-cite-original)))
+ (funcall (or message-cite-function #'message-cite-original))))
;; Crypto processing based crypto content of the original message
(when process-crypto
--
1.9.1
next prev parent reply other threads:[~2015-01-09 23:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-09 1:19 [PATCH] Use the message cite variable instead of a hard coded function Todd
2015-01-09 7:50 ` David Bremner
2015-01-09 12:33 ` Todd
2015-01-09 13:56 ` Tomi Ollila
2015-01-09 23:37 ` Todd [this message]
2015-01-10 8:19 ` [PATCH v2] emacs: Use the message cite variable David Bremner
2015-01-10 14:28 ` [PATCH v3] emacs: Use the message cite variable instead of a calling cite-message-original directly Todd
2015-01-14 19:57 ` [PATCH] emacs: make citation function customizable David Bremner
2015-01-14 23:56 ` Todd
2015-01-16 8:15 ` 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=1420846627-31763-1-git-send-email-todd@electricoding.com \
--to=todd@electricoding.com \
--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).