]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
Makefile: Fix notmuch binary to directly link against Xapian and GMime.
[notmuch] / emacs / notmuch.el
index ff9b519b2d6052cf52d68b825b48ed7946653f1a..d1543f4bd8bd915de2ea503f44fdbd09572dd34c 100644 (file)
@@ -795,10 +795,13 @@ The optional parameters are used as follows:
       (erase-buffer)
       (goto-char (point-min))
       (save-excursion
-       (let ((proc (start-process-shell-command
-                    "notmuch-search" buffer notmuch-command "search"
-                    (if oldest-first "--sort=oldest-first" "--sort=newest-first")
-                    (shell-quote-argument query))))
+       (let ((proc (start-process
+                    "notmuch-search" buffer
+                    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)))