aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch.el
diff options
context:
space:
mode:
authorGravatar David Benjamin <davidben@MIT.EDU>2010-06-03 20:29:32 -0400
committerGravatar Carl Worth <cworth@cworth.org>2010-10-29 14:13:51 -0700
commitadbfff40caeef27b912dbeb2bf3d1038a6e6cab0 (patch)
treeeb68656faea237460dc9928d3ab88df29ea84ef9 /emacs/notmuch.el
parent14f1a79f44fde886c8c3f4c7cbcf17daf8fb34e2 (diff)
Don't involve the shell in notmuch searches
The shell isn't needed to interpret any of the arguments, so don't bother using it at all. Signed-off-by: David Benjamin <davidben@mit.edu>
Diffstat (limited to 'emacs/notmuch.el')
-rw-r--r--emacs/notmuch.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index a8485275..d1543f4b 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -795,13 +795,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)))