1 Return-Path: <tomi.ollila@iki.fi>
\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 26249431FBC
\r
6 for <notmuch@notmuchmail.org>; Sat, 15 Dec 2012 06:34:38 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 JUGnbZSmTA4N for <notmuch@notmuchmail.org>;
\r
16 Sat, 15 Dec 2012 06:34:37 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id E626F431FB6
\r
19 for <notmuch@notmuchmail.org>; Sat, 15 Dec 2012 06:34:36 -0800 (PST)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id CE39410007E;
\r
22 Sat, 15 Dec 2012 16:34:31 +0200 (EET)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org
\r
25 Subject: Re: [PATCH] contrib: pick: archive message updated
\r
26 In-Reply-To: <1354970494-18050-1-git-send-email-markwalters1009@gmail.com>
\r
27 References: <1354970494-18050-1-git-send-email-markwalters1009@gmail.com>
\r
28 User-Agent: Notmuch/0.14+116~g29fcdb5 (http://notmuchmail.org) Emacs/24.2.1
\r
29 (x86_64-unknown-linux-gnu)
\r
30 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
31 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
32 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
33 Date: Sat, 15 Dec 2012 16:34:31 +0200
\r
34 Message-ID: <m2txrnpeo8.fsf@guru.guru-group.fi>
\r
36 Content-Type: text/plain
\r
37 X-BeenThere: notmuch@notmuchmail.org
\r
38 X-Mailman-Version: 2.1.13
\r
40 List-Id: "Use and development of the notmuch mail system."
\r
41 <notmuch.notmuchmail.org>
\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
45 List-Post: <mailto:notmuch@notmuchmail.org>
\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
49 X-List-Received-Date: Sat, 15 Dec 2012 14:34:39 -0000
\r
51 On Sat, Dec 08 2012, Mark Walters <markwalters1009@gmail.com> wrote:
\r
53 > Update pick's archive message to respect notmuch-archive-tags. Also
\r
54 > split archive message into an archiving part and a separate
\r
55 > "then-next" part, to move more inline with show. Update the keybinding
\r
56 > so default behaviour is unchanged.
\r
65 > Notmuch pick had fallen behind show so update.
\r
72 > contrib/notmuch-pick/notmuch-pick.el | 21 +++++++++++++++++----
\r
73 > 1 files changed, 17 insertions(+), 4 deletions(-)
\r
75 > diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el
\r
76 > index 755cbbc..36587a6 100644
\r
77 > --- a/contrib/notmuch-pick/notmuch-pick.el
\r
78 > +++ b/contrib/notmuch-pick/notmuch-pick.el
\r
79 > @@ -173,7 +173,7 @@
\r
80 > (define-key map "q" 'notmuch-pick-quit)
\r
81 > (define-key map "x" 'notmuch-pick-quit)
\r
82 > (define-key map "?" 'notmuch-help)
\r
83 > - (define-key map "a" 'notmuch-pick-archive-message)
\r
84 > + (define-key map "a" 'notmuch-pick-archive-message-then-next)
\r
85 > (define-key map "=" 'notmuch-pick-refresh-view)
\r
86 > (define-key map "s" 'notmuch-search)
\r
87 > (define-key map "z" 'notmuch-pick)
\r
88 > @@ -393,10 +393,23 @@ Does NOT change the database."
\r
89 > (kill-buffer notmuch-pick-message-buffer))
\r
92 > -(defun notmuch-pick-archive-message ()
\r
93 > +(defun notmuch-pick-archive-message (&optional unarchive)
\r
94 > + "Archive the current message.
\r
96 > +Archive the current message by applying the tag changes in
\r
97 > +`notmuch-archive-tags' to it (remove the \"inbox\" tag by
\r
98 > +default). If a prefix argument is given, the message will be
\r
99 > +\"unarchived\", i.e. the tag changes in `notmuch-archive-tags'
\r
100 > +will be reversed."
\r
101 > + (interactive "P")
\r
102 > + (when notmuch-archive-tags
\r
103 > + (apply 'notmuch-pick-tag
\r
104 > + (notmuch-tag-change-list notmuch-archive-tags unarchive))))
\r
106 > +(defun notmuch-pick-archive-message-then-next (&optional unarchive)
\r
107 > "Archive the current message and move to next matching message."
\r
109 > - (notmuch-pick-tag "-inbox")
\r
110 > + (interactive "P")
\r
111 > + (notmuch-pick-archive-message unarchive)
\r
112 > (notmuch-pick-next-matching-message))
\r
114 > (defun notmuch-pick-next-message ()
\r
118 > _______________________________________________
\r
119 > notmuch mailing list
\r
120 > notmuch@notmuchmail.org
\r
121 > http://notmuchmail.org/mailman/listinfo/notmuch
\r