Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 87B05429E20 for ; Thu, 27 Jan 2011 03:29:09 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dwZSdC24N3On for ; Thu, 27 Jan 2011 03:29:08 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 4B810431FB6 for ; Thu, 27 Jan 2011 03:29:08 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 9511D3CFE73; Thu, 27 Jan 2011 12:29:07 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id c5RE+JQNxl04; Thu, 27 Jan 2011 12:29:06 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 349243CFE71; Thu, 27 Jan 2011 12:29:06 +0100 (CET) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 34F1915C06F; Thu, 27 Jan 2011 12:29:06 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1PiQ2E-0002Qn-0e; Thu, 27 Jan 2011 12:29:06 +0100 From: Michal Sojka To: Carl Worth , Jameson Rollins , Notmuch Mail Subject: Re: [PATCH] emacs: send notmuch-query stderr to /dev/null In-Reply-To: <87lj27ymqg.fsf@yoom.home.cworth.org> References: <878vy7tjog.fsf@servo.finestructure.net> <87lj27ymqg.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.5-87-g9705d00 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Thu, 27 Jan 2011 12:29:05 +0100 Message-ID: <87zkqm7fge.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2011 11:29:09 -0000 On Thu, 27 Jan 2011, Carl Worth wrote: > On Wed, 26 Jan 2011 12:57:50 -0800, Jameson Rollins wrote: > > 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) > > Thanks! I had wondered what those json errors were about. I've committed > this. > > I am a bit concerned about throwing the error output away, of course, > (so we'll wait for that fix to emacs---thanks for submitting a bug > report). Do you have a sense of what kinds of output we are getting on > stderr? I do not know which errors Jameson experienced, but sometimes I have to use LD_PRELOADed 32bit libraries with some software and when I accidentally run my emacs (which is 64bit) with LD_PRELOAD set this way, every execution of notmuch prints ERROR: ld.so: object '/opt/xilinx/usb-driver/libusb-driver.so' from LD_PRELOAD cannot be preloaded: ignored. and this breaks the parsing. So thanks Jameson for solving this issue for me. -Michal