]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: restore autoload cookie for notmuch-search
[notmuch] / emacs / notmuch.el
index 9c7f2020bdb9ab0cde0908d8ac84d01f19a50412..46f14fea1dd0ff112a57e64154cc5e5eeb19ab37 100644 (file)
@@ -931,8 +931,8 @@ PROMPT is the string to prompt with."
   "Return the current query in this search buffer"
   notmuch-search-query-string)
 
-;;;###autoload
 (put 'notmuch-search 'notmuch-doc "Search for messages.")
+;;;###autoload
 (defun notmuch-search (&optional query oldest-first target-thread target-line)
   "Display threads matching QUERY in a notmuch-search buffer.
 
@@ -1058,8 +1058,9 @@ current search results AND that are tagged with the given tag."
   (with-current-buffer b
     (memq major-mode '(notmuch-show-mode
                       notmuch-search-mode
+                      notmuch-tree-mode
                       notmuch-hello-mode
-                      message-mode))))
+                      notmuch-message-mode))))
 
 ;;;###autoload
 (defun notmuch-cycle-notmuch-buffers ()