1 Return-Path: <servilio@gmail.com>
\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 36B744196F2
\r
6 for <notmuch@notmuchmail.org>; Tue, 13 Apr 2010 06:06:43 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5
\r
12 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
\r
13 DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001] autolearn=ham
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id 5YJ+x3P-Dkl3 for <notmuch@notmuchmail.org>;
\r
17 Tue, 13 Apr 2010 06:06:42 -0700 (PDT)
\r
18 Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com
\r
19 [74.125.82.53]) by olra.theworths.org (Postfix) with ESMTP id 5E8D4431FC1 for
\r
20 <notmuch@notmuchmail.org>; Tue, 13 Apr 2010 06:06:42 -0700 (PDT)
\r
21 Received: by wwb22 with SMTP id 22so2820231wwb.26
\r
22 for <notmuch@notmuchmail.org>; Tue, 13 Apr 2010 06:06:41 -0700 (PDT)
\r
23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
24 h=domainkey-signature:mime-version:received:date:received:message-id
\r
25 :subject:from:to:content-type;
\r
26 bh=ZcsvrT2zRI0RHFX+WiZjabyx6CkDJXx4BJLvljWG8XM=;
\r
27 b=x+FvhY6Y+C4+1VYnc1R8RRz32W2UevrCxbFlxNERo5zzkgpWbuA1TQLX19sq6zgFPJ
\r
28 jbDfcMWhSmbUvF0UDB7M/+k0U7D8cOYH0LLLSQdVrPvZs7VHRUpmUTKf7wVZilylWgNK
\r
29 MZA+Gd9LNG7A+wRDqJI+cn62e1p/IgySjUSuQ=
\r
30 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
31 h=mime-version:date:message-id:subject:from:to:content-type;
\r
32 b=JLmXxSrXrnTq8ERxxWss+qgK2mdYUZ9+rnUKMHbMiNdM8OWGmFjc1BzFUvKMNPqUWM
\r
33 j/Gihc17v/K5cHdUbeiKEDc3PxmRx+1easlXiy9OpbWBaZatRFywg0un6GPqzL2mVJll
\r
34 /7e5b0PfrTG9SY4n41w9wZxyAFQMnhxljN9Fk=
\r
36 Received: by 10.216.89.140 with HTTP; Tue, 13 Apr 2010 06:06:41 -0700 (PDT)
\r
37 Date: Tue, 13 Apr 2010 09:06:41 -0400
\r
38 Received: by 10.216.86.193 with SMTP id w43mr3190049wee.16.1271164001493; Tue,
\r
39 13 Apr 2010 06:06:41 -0700 (PDT)
\r
40 Message-ID: <p2ub22065d01004130606m4d901876jdcbc0b1e4d524d8f@mail.gmail.com>
\r
41 Subject: [PATCH] emacs: Extend the archive function to operate on regions too.
\r
42 From: Servilio Afre Puentes <servilio@gmail.com>
\r
43 To: notmuch <notmuch@notmuchmail.org>
\r
44 Content-Type: text/plain; charset=ISO-8859-1
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Tue, 13 Apr 2010 13:06:43 -0000
\r
59 Signed-off-by: Servilio Afre Puentes <servilio@gmail.com>
\r
61 emacs/notmuch.el | 10 +++++-----
\r
62 1 files changed, 5 insertions(+), 5 deletions(-)
\r
64 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
65 index 517c53a..4d4971f 100644
\r
66 --- a/emacs/notmuch.el
\r
67 +++ b/emacs/notmuch.el
\r
68 @@ -264,7 +264,7 @@ For a mouse binding, return nil."
\r
69 (define-key map "f" 'notmuch-search-filter)
\r
70 (define-key map [mouse-1] 'notmuch-search-show-thread)
\r
71 (define-key map "*" 'notmuch-search-operate-all)
\r
72 - (define-key map "a" 'notmuch-search-archive-thread)
\r
73 + (define-key map "a" 'notmuch-search-archive-thread-or-region)
\r
74 (define-key map "-" 'notmuch-search-remove-tag)
\r
75 (define-key map "+" 'notmuch-search-add-tag)
\r
76 (define-key map (kbd "RET") 'notmuch-search-show-thread)
\r
77 @@ -359,7 +359,7 @@ participants in the thread, a representative
\r
81 Pressing \\[notmuch-search-show-thread] on any line displays that
\r
82 thread. The '\\[notmuch-search-add-tag]' and
\r
83 '\\[notmuch-search-remove-tag]'
\r
84 -keys can be used to add or remove tags from a thread. The
\r
85 '\\[notmuch-search-archive-thread]' key
\r
86 +keys can be used to add or remove tags from a thread. The
\r
87 '\\[notmuch-search-archive-thread-or-region]' key
\r
88 is a convenience for archiving a thread (removing the \"inbox\"
\r
89 tag). The '\\[notmuch-search-operate-all]' key can be used to add or
\r
90 remove a tag from all
\r
91 threads in the current buffer.
\r
92 @@ -566,12 +566,12 @@ thread or threads in the current region."
\r
93 (notmuch-search-remove-tag-region tag beg end))
\r
94 (notmuch-search-remove-tag-thread tag))))
\r
96 -(defun notmuch-search-archive-thread ()
\r
97 - "Archive the currently selected thread (remove its \"inbox\" tag).
\r
98 +(defun notmuch-search-archive-thread-or-region ()
\r
99 + "Archive the currently selected thread or region (remove its \"inbox\" tag).
\r
101 This function advances the next thread when finished."
\r
103 - (notmuch-search-remove-tag-thread "inbox")
\r
104 + (notmuch-search-remove-tag "inbox")
\r
107 (defun notmuch-search-process-sentinel (proc msg)
\r