From: Michal Sojka Date: Tue, 1 May 2012 21:10:47 +0000 (+0200) Subject: emacs: Do not pass stderr of notmuch reply to JSON parser X-Git-Tag: 0.13_rc1~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e02c179c8f6cddcc0b6457ccd0fd40186c75e3db;p=notmuch.git 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. --- diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index cb89db3a..408b49e0 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -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)