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 B4DB8431FB6 for ; Wed, 2 Feb 2011 15:57:49 -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=[RCVD_IN_DNSWL_NONE=-0.0001] 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 y8MlmeEB-CSN for ; Wed, 2 Feb 2011 15:57:48 -0800 (PST) Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.31.37]) by olra.theworths.org (Postfix) with ESMTP id 83B94431FB5 for ; Wed, 2 Feb 2011 15:57:48 -0800 (PST) Received: from [87.180.46.33] (helo=stokes.schwinge.homeip.net) by smtprelay03.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1PkmZk-0000PV-KM for notmuch@notmuchmail.org; Thu, 03 Feb 2011 00:57:28 +0100 Received: (qmail 7021 invoked from network); 2 Feb 2011 23:57:05 -0000 Received: from schwinge.homeip.net (87.180.46.33) by stokes.schwinge.homeip.net with QMQP; 2 Feb 2011 23:57:05 -0000 Received: (nullmailer pid 16855 invoked by uid 1000); Wed, 02 Feb 2011 23:57:04 -0000 From: Thomas Schwinge To: notmuch@notmuchmail.org Subject: Re: [BUG] Emacs UI dropping every 25th line, roughly Date: Thu, 3 Feb 2011 00:56:37 +0100 Message-Id: <1296690999-16542-1-git-send-email-thomas@schwinge.name> X-Mailer: git-send-email 1.7.1 In-Reply-To: <87zkqeiffj.fsf@kepler.schwinge.homeip.net> References: <87zkqeiffj.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Df-Sender: thomas@schwinge.name 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: Wed, 02 Feb 2011 23:57:49 -0000 Hallo! Here is the problem, as suspected. On Wed, 02 Feb 2011 17:12:16 +0100, I wrote: > At this / in the middle of this point, the 4 KiB size is hit. After > accumulating some more (notice the 3.6 seconds delay), Emacs read()s the > first chunk (line breaks inserted for clarity): > > 16:26:57.928798 read(8, "[first two dozen results]" > "thread:00000000000006c7 2009-12-16 [2/2] Thomas Schwinge; [subject] ([flags])\n" > "t", 4096) = 4095 > > The last result line is obviously incomplete, only the `t' so far. notmuch.el:notmuch-search-process-filter will be called for processing these lines. It'll do fine up to the single `t' -- which simply isn't a conforming line and thus will be dropped (which is questionable behavior anyway, I would think?). > There is more to be read, so Emacs quickly goes on with the next chunk: > > 16:26:57.966247 read(8, "hread:0000000000000ac4 2009-12-16 [1/1] jsm28@sourceware.org; [subject] ([flags])\n" > "[more results]", 4096) = 4095 Same thing; this time ``hread:[...]'' isn't a confirming line, and will be dropped. After that, regular processing continues. This problem has been around as of the beginning of the incremental / asynchronous search results changes, as documented in id:87aayatnw4.fsf@yoom.home.cworth.org on 2009-11-25; 2009-11-24's commit 93af7b574598637c2766dd1f8ef343962c9a8efb. Emacs LISP is not my speciality, neither is any other LISP dialect, so someone please carefully review this. Grüße (und gute Nacht...), Thomas