]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: eliminate search-tag-thread in favor of just search-tag
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 14 Apr 2012 18:52:54 +0000 (11:52 -0700)
committerDavid Bremner <bremner@debian.org>
Sun, 29 Apr 2012 20:43:03 +0000 (17:43 -0300)
notmuch-search-tag-thread is now completely redundant with
notmuch-search-tag so we eliminate it to simplify the interface.

emacs/notmuch.el

index a069492b1b7936a40dab68aebf30d40b143e938c..c6236db26cf5327d8ad152ffa9363eb3dfb6ddb7 100644 (file)
@@ -517,12 +517,6 @@ and will also appear in a buffer named \"*Notmuch errors*\"."
        (forward-line 1))
       output)))
 
        (forward-line 1))
       output)))
 
-(defun notmuch-search-tag-thread (&rest tag-changes)
-  "Change tags for the currently selected thread.
-
-See `notmuch-search-tag-region' for details."
-  (apply 'notmuch-search-tag-region (point) (point) tag-changes))
-
 (defun notmuch-search-tag-region (beg end &optional tag-changes)
   "Change tags for threads in the given region."
   (let ((search-string (notmuch-search-find-thread-id-region-search beg end)))
 (defun notmuch-search-tag-region (beg end &optional tag-changes)
   "Change tags for threads in the given region."
   (let ((search-string (notmuch-search-find-thread-id-region-search beg end)))
@@ -560,7 +554,7 @@ See `notmuch-tag' for information on the format of TAG-CHANGES."
 
 This function advances the next thread when finished."
   (interactive)
 
 This function advances the next thread when finished."
   (interactive)
-  (notmuch-search-tag-thread "-inbox")
+  (notmuch-search-tag '("-inbox"))
   (notmuch-search-next-thread))
 
 (defvar notmuch-search-process-filter-data nil
   (notmuch-search-next-thread))
 
 (defvar notmuch-search-process-filter-data nil