1 Return-Path: <bremner@pivot.cs.unb.ca>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id B95E64196F2
\r
6 for <notmuch@notmuchmail.org>; Wed, 21 Apr 2010 14:42:11 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5
\r
12 tests=[BAYES_20=-0.001] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 9HNujFoWB6us for <notmuch@notmuchmail.org>;
\r
16 Wed, 21 Apr 2010 14:42:11 -0700 (PDT)
\r
17 Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57])
\r
18 by olra.theworths.org (Postfix) with ESMTP id E8670431FC1
\r
19 for <notmuch@notmuchmail.org>; Wed, 21 Apr 2010 14:42:10 -0700 (PDT)
\r
21 fctnnbsc30w-142167190087.pppoe-dynamic.high-speed.nb.bellaliant.net
\r
22 ([142.167.190.87] helo=rocinante.cs.unb.ca)
\r
23 by pivot.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32)
\r
24 (Exim 4.69) (envelope-from <bremner@pivot.cs.unb.ca>)
\r
25 id 1O4hgQ-0004Ib-7B; Wed, 21 Apr 2010 18:42:10 -0300
\r
26 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.71)
\r
27 (envelope-from <bremner@rocinante.cs.unb.ca>)
\r
28 id 1O4hfy-0004eK-Iw; Wed, 21 Apr 2010 18:41:42 -0300
\r
29 From: David Bremner <david@tethera.net>
\r
30 To: notmuch@notmuchmail.org
\r
31 Subject: [PATCH v2] notmuch.el: add a hook to notmuch-reply
\r
32 Date: Wed, 21 Apr 2010 18:41:35 -0300
\r
33 Message-Id: <1271886095-17766-1-git-send-email-david@tethera.net>
\r
34 X-Mailer: git-send-email 1.7.0
\r
35 In-Reply-To: <1267186952-4561-1-git-send-email-david@tethera.net>
\r
36 References: <1267186952-4561-1-git-send-email-david@tethera.net>
\r
37 X-Sender-Verified: bremner@pivot.cs.unb.ca
\r
38 Cc: David Bremner <bremner@unb.ca>
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Wed, 21 Apr 2010 21:42:11 -0000
\r
53 From: David Bremner <bremner@unb.ca>
\r
55 This patch introduces a variable notmuch-reply-hook and calls it using
\r
56 run-hooks. This allows people to easily override the header setup and
\r
57 so forth done by notmuch-reply. In particular it allows harmonizing
\r
58 the headers of message-mode and notmuch-reply.
\r
61 Rebased against current master. The rework was inspired by current
\r
62 discussion about how Bcc handling was broken in message-mode buffers
\r
63 not generated by notmuch-reply.
\r
65 emacs/notmuch.el | 10 ++++++++++
\r
66 1 files changed, 10 insertions(+), 0 deletions(-)
\r
68 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
69 index 66958a6..563fdc8 100644
\r
70 --- a/emacs/notmuch.el
\r
71 +++ b/emacs/notmuch.el
\r
72 @@ -72,6 +72,14 @@ For example:
\r
73 :type '(alist :key-type (string) :value-type (string))
\r
76 +(defcustom notmuch-reply-hook nil
\r
77 + "List of functions to call when replying to a message.
\r
78 +Run after the buffer content is returned from notmuch and before
\r
79 +handing off to message mode. The function `notmuch-reply' runs
\r
84 (defun notmuch-select-tag-with-completion (prompt &rest search-terms)
\r
86 (with-output-to-string
\r
87 @@ -124,6 +132,8 @@ For example:
\r
89 (insert "--text follows this line--")
\r
92 + (run-hooks 'notmuch-reply-hook))
\r
95 (defun notmuch-documentation-first-line (symbol)
\r