From: Carl Worth Date: Mon, 9 Nov 2009 21:45:11 +0000 (-0800) Subject: notmuch.el: Fix add/remove tag from search buffers. X-Git-Tag: 0.1~554 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=97ef8a74c93fc24a65d97ae621f482450503db09;hp=39429339624f8d29db8f523d52a81c70001ebebe;ds=sidebyside notmuch.el: Fix add/remove tag from search buffers. These were recently broken with the change of "notmuch search" to prefix thread IDs with "thread:" rather than printing them raw. --- diff --git a/notmuch.el b/notmuch.el index 4e649d44..2e172aae 100644 --- a/notmuch.el +++ b/notmuch.el @@ -759,12 +759,12 @@ and will also appear in a buffer named \"*Notmuch errors*\"." (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-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 ()