unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [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.
@ 2012-03-07 22:39 Tim Bielawa
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Bielawa @ 2012-03-07 22:39 UTC (permalink / raw)
  To: notmuch

---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-07 23:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-07 22:39 [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 Tim Bielawa
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

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).