]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch.el: Fix add/remove tag from search buffers.
authorCarl Worth <cworth@cworth.org>
Mon, 9 Nov 2009 21:45:11 +0000 (13:45 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 9 Nov 2009 21:45:11 +0000 (13:45 -0800)
These were recently broken with the change of "notmuch search" to
prefix thread IDs with "thread:" rather than printing them raw.

notmuch.el

index 4e649d441401239b9ddafa9258ade2d838b56acf..2e172aaecb432a7367894811e252c057a843834f 100644 (file)
@@ -759,12 +759,12 @@ and will also appear in a buffer named \"*Notmuch errors*\"."
 
 (defun notmuch-search-add-tag (tag)
   (interactive "sTag to add: ")
 
 (defun notmuch-search-add-tag (tag)
   (interactive "sTag to add: ")
-  (notmuch-call-notmuch-process "tag" (concat "+" tag) (concat "thread:" (notmuch-search-find-thread-id)))
+  (notmuch-call-notmuch-process "tag" (concat "+" tag) (notmuch-search-find-thread-id))
   (notmuch-search-set-tags (delete-dups (sort (cons tag (notmuch-search-get-tags)) 'string<))))
 
 (defun notmuch-search-remove-tag (tag)
   (interactive "sTag to remove: ")
   (notmuch-search-set-tags (delete-dups (sort (cons tag (notmuch-search-get-tags)) 'string<))))
 
 (defun notmuch-search-remove-tag (tag)
   (interactive "sTag to remove: ")
-  (notmuch-call-notmuch-process "tag" (concat "-" tag) (concat "thread:" (notmuch-search-find-thread-id)))
+  (notmuch-call-notmuch-process "tag" (concat "-" tag) (notmuch-search-find-thread-id))
   (notmuch-search-set-tags (delete tag (notmuch-search-get-tags))))
 
 (defun notmuch-search-archive-thread ()
   (notmuch-search-set-tags (delete tag (notmuch-search-get-tags))))
 
 (defun notmuch-search-archive-thread ()