From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7EB12431FB6 for ; Thu, 26 May 2011 14:16:57 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=unavailable 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 wEBHv4X2WrNy for ; Thu, 26 May 2011 14:16:57 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by olra.theworths.org (Postfix) with ESMTP id 47854429E25 for ; Thu, 26 May 2011 14:16:57 -0700 (PDT) Received: from youngberry.canonical.com ([91.189.89.112]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QPhvK-0004MQ-BM; Thu, 26 May 2011 21:16:54 +0000 Received: from [120.136.5.9] (helo=grond) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QPhvK-0003Oe-0x; Thu, 26 May 2011 21:16:54 +0000 Received: by grond (Postfix, from userid 1000) id 9F5E520E064; Fri, 27 May 2011 09:16:47 +1200 (NZST) From: Michael Hudson-Doyle To: Carl Worth , Patrick Totzke , notmuch Subject: Re: one-time-iterators In-Reply-To: <877h9d9y5m.fsf@yoom.home.cworth.org> References: <1306397849-sup-3304@brick> <877h9d9y5m.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.1.50.1 (x86_64-pc-linux-gnu) Date: Fri, 27 May 2011 09:16:47 +1200 Message-ID: <87hb8hb1s0.fsf@canonical.com> 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, 26 May 2011 21:16:57 -0000 On Thu, 26 May 2011 10:20:21 -0700, Carl Worth wrote: > 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? > > 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. I've had exactly this happen to me. Yay for post-vacation email mountains and slow laptop drives... Cheers, mwh