[PATCH 1/1] Add a function for applying an arbitrary number of tags to the highlighte...
authorTim Bielawa <tbielawa@redhat.com>
Wed, 7 Mar 2012 22:39:10 +0000 (17:39 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:18 +0000 (09:45 -0800)
e9/6a41c249bd90b978ad3735c26328840dc00445 [new file with mode: 0644]

diff --git a/e9/6a41c249bd90b978ad3735c26328840dc00445 b/e9/6a41c249bd90b978ad3735c26328840dc00445
new file mode 100644 (file)
index 0000000..4ee213c
--- /dev/null
@@ -0,0 +1,80 @@
+Return-Path: <tbielawa@redhat.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5BDD8431FB6\r
+       for <notmuch@notmuchmail.org>; Wed,  7 Mar 2012 14:39:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -5\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-5 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_HI=-5] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ZCKCfco0OJ3Y for <notmuch@notmuchmail.org>;\r
+       Wed,  7 Mar 2012 14:39:13 -0800 (PST)\r
+Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\r
+       by olra.theworths.org (Postfix) with ESMTP id 91823431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  7 Mar 2012 14:39:13 -0800 (PST)\r
+Received: from int-mx09.intmail.prod.int.phx2.redhat.com\r
+       (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])\r
+       by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q27MdCSP014827\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)\r
+       for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 17:39:12 -0500\r
+Received: from localhost.localdomain ([10.3.113.2])\r
+       by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP\r
+       id q27MdBI7003549\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)\r
+       for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 17:39:12 -0500\r
+From: Tim Bielawa <tbielawa@redhat.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/1] Add a function for applying an arbitrary number of tags\r
+       to the highlighted message thread while in notmuch-search-mode.\r
+       Intended to restore the original functionality of\r
+       notmuch-search-remove-tag and notmuch-search-add-tag prior to\r
+       2beaefa2.\r
+Date: Wed,  7 Mar 2012 17:39:10 -0500\r
+Message-Id: <1331159950-21565-1-git-send-email-tbielawa@redhat.com>\r
+X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 07 Mar 2012 22:39:15 -0000\r
+\r
+---\r
+ emacs/notmuch.el |    9 +++++++++\r
+ 1 files changed, 9 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index 99e0c93..b731c7c 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -663,6 +663,15 @@ added or removed for all threads in the region from BEG to END."\r
+   (interactive)\r
+   (notmuch-search-tag "-"))\r
+ \r
++(defun notmuch-search-tag-and-advance (&rest tags)\r
++  "Apply a tag or set of tags to the current thread.\r
++\r
++Shortcut to simplify applying tags in search mode. Targeted for\r
++use in key-bound functions. Advances to the next thread after\r
++applying the tags."\r
++  (mapc 'notmuch-search-tag-thread tags)\r
++  (notmuch-search-next-thread))\r
++\r
+ (defun notmuch-search-archive-thread ()\r
+   "Archive the currently selected thread (remove its \"inbox\" tag).\r
+ \r
+-- \r
+1.7.4.4\r
+\r