mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
emacs: Do not pass stderr of notmuch reply to JSON parser
Sometimes, notmuch reply outputs something to stderr, for example: "Failed to verify signed part: Cannot verify multipart/signed part: unsupported signature protocol". When this happens, replying in emacs fails, because emacs cannot parse the error message as JSON. This patch causes emacs to ignore stderr when reading reply from notmuch.
This commit is contained in:
parent
832fd1a7a6
commit
e02c179c8f
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ list."
|
|||
|
||||
;; Get the reply object as JSON, and parse it into an elisp object.
|
||||
(with-temp-buffer
|
||||
(apply 'call-process (append (list notmuch-command nil (list t t) nil) args))
|
||||
(apply 'call-process (append (list notmuch-command nil (list t nil) nil) args))
|
||||
(goto-char (point-min))
|
||||
(let ((json-object-type 'plist)
|
||||
(json-array-type 'list)
|
||||
|
|
Loading…
Reference in a new issue