aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-query.el
diff options
context:
space:
mode:
authorGravatar Jameson Rollins <jrollins@finestructure.net>2011-01-26 12:57:50 -0800
committerGravatar Carl Worth <cworth@cworth.org>2011-01-27 14:44:05 +1000
commit15d8928f4133eb28f7823b0f4d4c5edc6471131c (patch)
tree7a30e15da68fc969ad39802bc2ba3afc1a4ac8e1 /emacs/notmuch-query.el
parentc58523088ac7fcbfa841187b1447269b638bfa95 (diff)
emacs: send notmuch-query stderr to /dev/null
The call-process to notmuch in notmuch-query.el was previously sending stderr into the output buffer. This means that if there is any stderr the JSON parsing breaks. Unfortunately call-process does not support sending stderr to a separate buffer or to the minibuffer [0], but it does support sending it to /dev/null. So we do that here instead. [0] a bug was filed against emacs (#7842)
Diffstat (limited to 'emacs/notmuch-query.el')
-rw-r--r--emacs/notmuch-query.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-query.el b/emacs/notmuch-query.el
index 26f95447..921f6246 100644
--- a/emacs/notmuch-query.el
+++ b/emacs/notmuch-query.el
@@ -35,7 +35,7 @@ is a possibly empty forest of replies.
(json-false 'nil))
(with-temp-buffer
(progn
- (apply 'call-process (append (list notmuch-command nil t nil) args))
+ (apply 'call-process (append (list notmuch-command nil (list t nil) nil) args))
(goto-char (point-min))
(json-read)))))