Re: [PATCH] emacs: Cycle through notmuch buffers rather than jumping to the last.
[notmuch-archives.git] / a9 / c4420f3ea0d35344b030afac8c1e773af38ffb
1 Return-Path: <racin@free.fr>\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 1E33D431FBC\r
6         for <notmuch@notmuchmail.org>; Wed, 20 Jan 2010 02:56:21 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.001\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.001 tagged_above=-999 required=5\r
12         tests=[BAYES_50=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 c1Q6Al7NBxn3 for <notmuch@notmuchmail.org>;\r
16         Wed, 20 Jan 2010 02:56:20 -0800 (PST)\r
17 Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5])\r
18         by olra.theworths.org (Postfix) with ESMTP id 10252431FAE\r
19         for <notmuch@notmuchmail.org>; Wed, 20 Jan 2010 02:56:18 -0800 (PST)\r
20 Received: from smtp5-g21.free.fr (localhost [127.0.0.1])\r
21         by smtp5-g21.free.fr (Postfix) with ESMTP id 40355D48216;\r
22         Wed, 20 Jan 2010 11:56:11 +0100 (CET)\r
23 Received: from zimbra1-e1.priv.proxad.net (zimbra1-e1.priv.proxad.net\r
24         [172.20.243.151])\r
25         by smtp5-g21.free.fr (Postfix) with ESMTP id 04789D4822A;\r
26         Wed, 20 Jan 2010 11:56:08 +0100 (CET)\r
27 Date: Wed, 20 Jan 2010 11:56:07 +0100 (CET)\r
28 From: racin@free.fr\r
29 To: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
30 Message-ID:\r
31  <1161359196.2247691263984967906.JavaMail.root@zimbra1-e1.priv.proxad.net>\r
32 In-Reply-To: <1263983530-5588-1-git-send-email-Sebastian@SSpaeth.de>\r
33 MIME-Version: 1.0\r
34 Content-Type: text/plain; charset=utf-8\r
35 Content-Transfer-Encoding: quoted-printable\r
36 X-Originating-IP: [132.166.135.72]\r
37 X-Mailer: Zimbra 5.0 (ZimbraWebClient - FF3.0\r
38         (Linux)/5.0.15_GA_2815.UBUNTU8_64)\r
39 X-Authenticated-User: racin@free.fr\r
40 Cc: notmuch <notmuch@notmuchmail.org>\r
41 Subject: Re: [notmuch] [PATCH] add notmuch-show-delete keybinding 'd'\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Wed, 20 Jan 2010 10:56:21 -0000\r
55 \r
56 Hi Sebastian,\r
57 \r
58 I posted a similar patch a while ago, that also did not show deleted messag=\r
59 es by default. Don't know if Carl wants to=20\r
60 integrate this though\r
61 \r
62 Matthieu\r
63 \r
64 ----- Mail Original -----\r
65 De: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
66 =C3=80: "notmuch" <notmuch@notmuchmail.org>\r
67 Envoy=C3=A9: Mercredi 20 Janvier 2010 10h32:10 GMT +00:00 GMT - Grande-Bret=\r
68 agne, Irlande, Portugal\r
69 Objet: [notmuch] [PATCH] add notmuch-show-delete keybinding 'd'\r
70 \r
71 It adds a tag 'delete' and removes the tags 'inbox' and 'unread'.\r
72 \r
73 Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
74 ---\r
75  notmuch.el |    8 ++++++++\r
76  1 files changed, 8 insertions(+), 0 deletions(-)\r
77 \r
78 diff --git a/notmuch.el b/notmuch.el\r
79 index 97914f2..ff930c9 100644\r
80 --- a/notmuch.el\r
81 +++ b/notmuch.el\r
82 @@ -63,6 +63,7 @@\r
83      (define-key map "m" 'message-mail)\r
84      (define-key map "f" 'notmuch-show-forward-current)\r
85      (define-key map "r" 'notmuch-show-reply)\r
86 +    (define-key map "d" 'notmuch-show-delete)\r
87      (define-key map "|" 'notmuch-show-pipe-message)\r
88      (define-key map "w" 'notmuch-show-save-attachments)\r
89      (define-key map "V" 'notmuch-show-view-raw-message)\r
90 @@ -369,6 +370,13 @@ buffer."\r
91    (let ((message-id (notmuch-show-get-message-id)))\r
92      (notmuch-reply message-id)))\r
93 =20\r
94 +(defun notmuch-show-delete ()\r
95 +  "'delete' current mail and remove 'unread' 'inbox'"\r
96 +  (interactive)\r
97 +  (notmuch-show-add-tag "delete")\r
98 +  (notmuch-show-remove-tag "unread")\r
99 +  (notmuch-show-remove-tag "inbox"))\r
100 +\r
101  (defun notmuch-show-forward-current ()\r
102    "Forward the current message."\r
103    (interactive)\r
104 --=20\r
105 1.6.3.3\r
106 \r
107 _______________________________________________\r
108 notmuch mailing list\r
109 notmuch@notmuchmail.org\r
110 http://notmuchmail.org/mailman/listinfo/notmuch\r