1 Return-Path: <tbielawa@redhat.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 C54F7431FB6
\r
6 for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 14:49:05 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-5 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_HI=-5] autolearn=disabled
\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 F3GR9EVkZ-W5 for <notmuch@notmuchmail.org>;
\r
16 Wed, 7 Mar 2012 14:49:05 -0800 (PST)
\r
17 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 3C7B7431FAE
\r
19 for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 14:49:05 -0800 (PST)
\r
20 Received: from int-mx01.intmail.prod.int.phx2.redhat.com
\r
21 (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
\r
22 by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q27Mn4J3026195
\r
23 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
\r
24 for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 17:49:04 -0500
\r
25 Received: from localhost.localdomain ([10.3.113.2])
\r
26 by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
\r
28 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
\r
29 for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 17:49:04 -0500
\r
30 From: Tim Bielawa <tbielawa@redhat.com>
\r
31 To: notmuch@notmuchmail.org
\r
32 Subject: [PATCH] Function to apply many tags in notmuch-search-mode
\r
33 Date: Wed, 7 Mar 2012 17:49:03 -0500
\r
34 Message-Id: <1331160543-22704-1-git-send-email-tbielawa@redhat.com>
\r
35 In-Reply-To: <1331159950-21565-1-git-send-email-tbielawa@redhat.com>
\r
36 References: <1331159950-21565-1-git-send-email-tbielawa@redhat.com>
\r
37 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Wed, 07 Mar 2012 22:49:05 -0000
\r
52 Add a function for applying an arbitrary number of tags to the
\r
53 highlighted message thread while in notmuch-search-mode. Intended to
\r
54 restore the original functionality of notmuch-search-remove-tag and
\r
55 notmuch-search-add-tag prior to 2beaefa2.
\r
57 emacs/notmuch.el | 9 +++++++++
\r
58 1 files changed, 9 insertions(+), 0 deletions(-)
\r
60 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
61 index 99e0c93..b731c7c 100644
\r
62 --- a/emacs/notmuch.el
\r
63 +++ b/emacs/notmuch.el
\r
64 @@ -663,6 +663,15 @@ added or removed for all threads in the region from BEG to END."
\r
66 (notmuch-search-tag "-"))
\r
68 +(defun notmuch-search-tag-and-advance (&rest tags)
\r
69 + "Apply a tag or set of tags to the current thread.
\r
71 +Shortcut to simplify applying tags in search mode. Targeted for
\r
72 +use in key-bound functions. Advances to the next thread after
\r
73 +applying the tags."
\r
74 + (mapc 'notmuch-search-tag-thread tags)
\r
75 + (notmuch-search-next-thread))
\r
77 (defun notmuch-search-archive-thread ()
\r
78 "Archive the currently selected thread (remove its \"inbox\" tag).
\r