one-time-iterators
Carl Worth
cworth at cworth.org
Thu May 26 10:20:21 PDT 2011
On Thu, 26 May 2011 09:31:19 +0100, Patrick Totzke <patricktotzke at googlemail.com> 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.
-Carl
--
carl.d.worth at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110526/3d80b45e/attachment.pgp>
More information about the notmuch
mailing list