mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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)
This commit is contained in:
parent
c58523088a
commit
15d8928f41
1 changed files with 1 additions and 1 deletions
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue