Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 6b / 4c57c98ab15a44768f5ad2cc484a4270e3d046
1 Return-Path: <bremner@tesseract.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 arlo.cworth.org (Postfix) with ESMTP id 4A14E6DE17FD\r
6  for <notmuch@notmuchmail.org>; Sat,  1 Aug 2015 02:47:21 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.153\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.153 tagged_above=-999 required=5 tests=[AWL=0.143, \r
12  T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id GlOT3I2NMzBG for <notmuch@notmuchmail.org>;\r
16  Sat,  1 Aug 2015 02:47:19 -0700 (PDT)\r
17 Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224])\r
18  by arlo.cworth.org (Postfix) with ESMTPS id A88646DE17F7\r
19  for <notmuch@notmuchmail.org>; Sat,  1 Aug 2015 02:47:19 -0700 (PDT)\r
20 Received: from remotemail by gitolite.debian.net with local (Exim 4.80)\r
21  (envelope-from <bremner@tesseract.cs.unb.ca>)\r
22  id 1ZLTMM-0004tf-Gg; Sat, 01 Aug 2015 09:45:42 +0000\r
23 Received: (nullmailer pid 29354 invoked by uid 1000); Sat, 01 Aug 2015\r
24  09:45:01 -0000\r
25 From: David Bremner <david@tethera.net>\r
26 To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
27 Subject: [PATCH 1/2] emacs: define a notmuch-compose-mode based on message\r
28  mode.\r
29 Date: Sat,  1 Aug 2015 11:44:55 +0200\r
30 Message-Id: <1438422296-29087-2-git-send-email-david@tethera.net>\r
31 X-Mailer: git-send-email 2.1.4\r
32 In-Reply-To: <1438422296-29087-1-git-send-email-david@tethera.net>\r
33 References: <87vbdrysd7.fsf@qmul.ac.uk>\r
34  <1438422296-29087-1-git-send-email-david@tethera.net>\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.18\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39  <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Sat, 01 Aug 2015 09:47:21 -0000\r
48 \r
49 This is to provide a clean way of overriding e.g. keybindings when\r
50 sending mail from notmuch.\r
51 ---\r
52  emacs/notmuch-mua.el | 4 ++++\r
53  1 file changed, 4 insertions(+)\r
54 \r
55 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
56 index 33f1399..a7d3eaa 100644\r
57 --- a/emacs/notmuch-mua.el\r
58 +++ b/emacs/notmuch-mua.el\r
59 @@ -265,6 +265,9 @@ Note that these functions use `mail-citation-hook' if that is non-nil."\r
60    (message-goto-body)\r
61    (set-buffer-modified-p nil))\r
62  \r
63 +(define-derived-mode notmuch-compose-mode message-mode "notmuch-compose"\r
64 +  "Notmuch message composition mode. Mostly like `message-mode'")\r
65 +\r
66  (defun notmuch-mua-mail (&optional to subject other-headers &rest other-args)\r
67    "Invoke the notmuch mail composition window.\r
68  \r
69 @@ -281,6 +284,7 @@ OTHER-ARGS are passed through to `message-mail'."\r
70                        (notmuch-user-name) " <" (notmuch-user-primary-email) ">")) other-headers))\r
71  \r
72    (apply #'message-mail to subject other-headers other-args)\r
73 +  (notmuch-compose-mode)\r
74    (message-sort-headers)\r
75    (message-hide-headers)\r
76    (set-buffer-modified-p nil)\r
77 -- \r
78 2.1.4\r
79 \r