]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: Fix the autoload comments
[notmuch] / emacs / notmuch.el
index a84852756d66366ef54be50924f210ea485821f5..0cb2e5b16864ec411e8bfbe079a418ba4e21cdc4 100644 (file)
@@ -329,7 +329,6 @@ For a mouse binding, return nil."
   "Face used in search mode face for tags."
   :group 'notmuch)
 
-;;;###autoload
 (defun notmuch-search-mode ()
   "Major mode displaying results of a notmuch search.
 
@@ -795,13 +794,13 @@ The optional parameters are used as follows:
       (erase-buffer)
       (goto-char (point-min))
       (save-excursion
-       (let ((proc (start-process-shell-command
+       (let ((proc (start-process
                     "notmuch-search" buffer
-                    (concat notmuch-command " search "
-                            (if oldest-first
-                                "--sort=oldest-first "
-                              "--sort=newest-first ")
-                            (shell-quote-argument query)))))
+                    notmuch-command "search"
+                    (if oldest-first
+                        "--sort=oldest-first"
+                      "--sort=newest-first")
+                    query)))
          (set-process-sentinel proc 'notmuch-search-process-sentinel)
          (set-process-filter proc 'notmuch-search-process-filter))))
     (run-hooks 'notmuch-search-hook)))