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 16E21431FD0 for ; Thu, 26 May 2011 10:20:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] 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 ExYsSFCPrbY8 for ; Thu, 26 May 2011 10:20:29 -0700 (PDT) Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2]) by olra.theworths.org (Postfix) with ESMTP id 90873431FB6 for ; Thu, 26 May 2011 10:20:29 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 667C129A523; Thu, 26 May 2011 10:20:28 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id BC69125417E; Thu, 26 May 2011 10:20:27 -0700 (PDT) From: Carl Worth To: Patrick Totzke , notmuch Subject: Re: one-time-iterators In-Reply-To: <1306397849-sup-3304@brick> References: <1306397849-sup-3304@brick> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Thu, 26 May 2011 10:20:21 -0700 Message-ID: <877h9d9y5m.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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, 26 May 2011 17:20:30 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 26 May 2011 09:31:19 +0100, Patrick Totzke wrote: > Wow. This reads really complicated. All I want to say is: > if I change tags in my search-results view, I get Xapian errors :) Yes, that's frustrating. I wish that we had a more reliable interface at the notmuch library level. But I'm not entirely sure what would be the best way to do this. > The question: How do you solve this in the emacs code? > do you store all tids of a query?=20 The emacs code does not use the notmuch library interface like your python bindings do. Instead, it uses the notmuch command-line tool, (and buffers up the text output by it). The support for asynchronous operations in the emacs interface means that it's likely possible someone could run into a similar problem: 1. Start a search returning a *lot* of results 2. When the first results come in, make some tag changes 3. See if the original search aborts I may have even had this happen to me before, but if I did I've never actually noticed it. I don't know what a good answer might be for this problem. =2DCarl =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3ei9UACgkQ6JDdNq8qSWhDrgCfTwG3CzgNvQNY3iktxz59ano+ z9wAn2tCIq9N4MIlcKNTqAdlnNl0keKH =YPqS -----END PGP SIGNATURE----- --=-=-=--