X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=aa9cceedd0e5c9dbcb96e1505d54f23cf80e409e;hb=1737ff5290a8ce1f66b4a7aeb6a16146dbc3517c;hp=284e9cd1e8fad1471dc4860fb1131d2473851313;hpb=668b66ec85a649255441f8ab1a6ee5baa680b4e4;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 284e9cd1..aa9cceed 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1124,7 +1124,7 @@ This includes: Refreshes the current view, observing changes in display preferences. If RETAIN-STATE is non-nil then the state of the buffer is stored and re-applied after the refresh." - (interactive) + (interactive "P") (let ((inhibit-read-only t) state) (if retain-state @@ -1690,26 +1690,6 @@ argument, hide all of the messages." (interactive) (backward-button 1)) -(defun notmuch-show-tag-thread-internal (tag &optional remove) - "Add tag to the current set of messages. - -If the remove switch is given, tags will be removed instead of -added." - (goto-char (point-min)) - (let ((op (if remove "-" "+"))) - (loop do (notmuch-show-tag-message (concat op tag)) - until (not (notmuch-show-goto-message-next))))) - -(defun notmuch-show-add-tag-thread (tag) - "Add tag to all messages in the current thread." - (interactive) - (notmuch-show-tag-thread-internal tag)) - -(defun notmuch-show-remove-tag-thread (tag) - "Remove tag from all messages in the current thread." - (interactive) - (notmuch-show-tag-thread-internal tag t)) - (defun notmuch-show-next-thread (&optional show-next) "Move to the next item in the search results, if any." (interactive "P") @@ -1737,9 +1717,8 @@ being delivered to the same thread. It does not archive the entire thread, but only the messages shown in the current buffer." (interactive "P") - (if unarchive - (notmuch-show-add-tag-thread "inbox") - (notmuch-show-remove-tag-thread "inbox"))) + (let ((op (if unarchive "+" "-"))) + (notmuch-show-tag-all (concat op "inbox")))) (defun notmuch-show-archive-thread-then-next () "Archive each message in thread, then show next thread from search."