1 Return-Path: <jrollins@finestructure.net>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 0A3B7431FB6
\r
6 for <notmuch@notmuchmail.org>; Wed, 26 Jan 2011 13:54:43 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id AI6pdle7B8kV for <notmuch@notmuchmail.org>;
\r
16 Wed, 26 Jan 2011 13:54:42 -0800 (PST)
\r
17 Received: from tarap.cc.columbia.edu (tarap.cc.columbia.edu [128.59.29.7])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 1FB6F431FB5
\r
19 for <notmuch@notmuchmail.org>; Wed, 26 Jan 2011 13:54:42 -0800 (PST)
\r
20 Received: from servo.finestructure.net (c-24-19-44-201.hsd1.wa.comcast.net
\r
22 (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0)
\r
23 by tarap.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id p0QLsd74005156
\r
24 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)
\r
25 for <notmuch@notmuchmail.org>; Wed, 26 Jan 2011 16:54:41 -0500 (EST)
\r
26 Received: from jrollins by servo.finestructure.net with local (Exim 4.72)
\r
27 (envelope-from <jrollins@finestructure.net>) id 1PiDK3-0005eu-Do
\r
28 for notmuch@notmuchmail.org; Wed, 26 Jan 2011 13:54:39 -0800
\r
29 From: Jameson Rollins <jrollins@finestructure.net>
\r
30 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
31 Subject: [PATCH] emacs: send notmuch-query stderr to /dev/null
\r
32 Date: Wed, 26 Jan 2011 12:57:50 -0800
\r
33 Message-ID: <878vy7tjog.fsf@servo.finestructure.net>
\r
35 Content-Type: text/plain; charset=us-ascii
\r
36 X-No-Spam-Score: Local
\r
37 X-Scanned-By: MIMEDefang 2.68 on 128.59.29.7
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Wed, 26 Jan 2011 21:54:43 -0000
\r
52 The call-process to notmuch in notmuch-query.el was previously sending
\r
53 stderr into the output buffer. This means that if there is any stderr
\r
54 the JSON parsing breaks. Unfortunately call-process does not support
\r
55 sending stderr to a separate buffer or to the minibuffer [0], but it
\r
56 does support sending it to /dev/null. So we do that here instead.
\r
58 [0] a bug was filed against emacs (#7842)
\r
60 emacs/notmuch-query.el | 2 +-
\r
61 1 files changed, 1 insertions(+), 1 deletions(-)
\r
63 diff --git a/emacs/notmuch-query.el b/emacs/notmuch-query.el
\r
64 index 26f9544..921f624 100644
\r
65 --- a/emacs/notmuch-query.el
\r
66 +++ b/emacs/notmuch-query.el
\r
67 @@ -35,7 +35,7 @@ is a possibly empty forest of replies.
\r
71 - (apply 'call-process (append (list notmuch-command nil t nil) args))
\r
72 + (apply 'call-process (append (list notmuch-command nil (list t nil) nil) args))
\r
73 (goto-char (point-min))
\r