From: Tim Bielawa <tbielawa@redhat.com>
To: notmuch@notmuchmail.org
Subject: [PATCH 1/1] Add a function for applying an arbitrary number of tags to the highlighted message thread while in notmuch-search-mode. Intended to restore the original functionality of notmuch-search-remove-tag and notmuch-search-add-tag prior to 2beaefa2.
Date: Wed, 7 Mar 2012 17:39:10 -0500 [thread overview]
Message-ID: <1331159950-21565-1-git-send-email-tbielawa@redhat.com> (raw)
---
emacs/notmuch.el | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 99e0c93..b731c7c 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -663,6 +663,15 @@ added or removed for all threads in the region from BEG to END."
(interactive)
(notmuch-search-tag "-"))
+(defun notmuch-search-tag-and-advance (&rest tags)
+ "Apply a tag or set of tags to the current thread.
+
+Shortcut to simplify applying tags in search mode. Targeted for
+use in key-bound functions. Advances to the next thread after
+applying the tags."
+ (mapc 'notmuch-search-tag-thread tags)
+ (notmuch-search-next-thread))
+
(defun notmuch-search-archive-thread ()
"Archive the currently selected thread (remove its \"inbox\" tag).
--
1.7.4.4
next reply other threads:[~2012-03-07 22:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-07 22:39 Tim Bielawa [this message]
2012-03-07 22:49 ` [PATCH] Function to apply many tags in notmuch-search-mode Tim Bielawa
2012-03-07 23:09 ` [PATCH 1/1] Add a function Tim Bielawa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1331159950-21565-1-git-send-email-tbielawa@redhat.com \
--to=tbielawa@redhat.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).