]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Correct the documentation for notmuch-search-add-tag (and -remove-tag)
authorCarl Worth <cworth@cworth.org>
Wed, 7 Apr 2010 20:15:27 +0000 (13:15 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 7 Apr 2010 20:15:27 +0000 (13:15 -0700)
These commands act on all messages in the thread, not simply those
that match the search. (There are use case for both behaviors, but the
documentation must match the behavior that's actually implemented).

emacs/notmuch.el

index 64f3e3da8edcf0d8222d8466472905aa22d6fbb9..517c53a5d3784a5c2d8362f319b2e436ac640d19 100644 (file)
@@ -532,12 +532,11 @@ and will also appear in a buffer named \"*Notmuch errors*\"."
          (notmuch-search-set-tags (delete tag (notmuch-search-get-tags)))
          (forward-line))))))
 
          (notmuch-search-set-tags (delete tag (notmuch-search-get-tags)))
          (forward-line))))))
 
-
 (defun notmuch-search-add-tag (tag)
   "Add a tag to the currently selected thread or region.
 
 (defun notmuch-search-add-tag (tag)
   "Add a tag to the currently selected thread or region.
 
-The tag is added to messages in the currently selected thread or
-region which match the current search terms."
+The tag is added to all messages in the currently selected thread
+or threads in the current region."
   (interactive
    (list (notmuch-select-tag-with-completion "Tag to add: ")))
   (save-excursion
   (interactive
    (list (notmuch-select-tag-with-completion "Tag to add: ")))
   (save-excursion
@@ -550,8 +549,8 @@ region which match the current search terms."
 (defun notmuch-search-remove-tag (tag)
   "Remove a tag from the currently selected thread or region.
 
 (defun notmuch-search-remove-tag (tag)
   "Remove a tag from the currently selected thread or region.
 
-The tag is removed from all messages in the currently selected thread
-or region which match the current search terms."
+The tag is removed from all messages in the currently selected
+thread or threads in the current region."
   (interactive
    (list (notmuch-select-tag-with-completion
          "Tag to remove: "
   (interactive
    (list (notmuch-select-tag-with-completion
          "Tag to remove: "