unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: send notmuch-query stderr to /dev/null
@ 2011-01-26 20:57 Jameson Rollins
  2011-01-27  4:49 ` Carl Worth
  0 siblings, 1 reply; 4+ messages in thread
From: Jameson Rollins @ 2011-01-26 20:57 UTC (permalink / raw)
  To: Notmuch Mail

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)
---
 emacs/notmuch-query.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch-query.el b/emacs/notmuch-query.el
index 26f9544..921f624 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)))))
 
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-28  0:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-26 20:57 [PATCH] emacs: send notmuch-query stderr to /dev/null Jameson Rollins
2011-01-27  4:49 ` Carl Worth
2011-01-27 11:29   ` Michal Sojka
2011-01-28  0:04   ` Jameson Rollins

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).