<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/emacs/notmuch-lib.el, branch 0.15</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.15</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.15'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2013-01-07T02:47:35Z</updated>
<entry>
<title>emacs: Use the minibuffer for CLI error reporting</title>
<updated>2013-01-07T02:47:35Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-01-03T21:47:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=401dbebd4803477563eff03d719605ed37a8e44d'/>
<id>urn:sha1:401dbebd4803477563eff03d719605ed37a8e44d</id>
<content type='text'>
We recently switched to popping up a buffer to report CLI errors, but
this was too intrusive, especially for transient errors and especially
since we made fewer things ignore errors.  This patch changes this to
display a basic error message in the minibuffer (using Emacs' usual
error handling path) and, if there are additional details, to log
these to a separate error buffer and reference the error buffer from
the minibuffer message.  This is more in line with how Emacs typically
handles errors, but makes the details available to the user without
flooding them with the details.

Given this split, we pare down the basic message and make it more
user-friendly, and also make the verbose message even more detailed
(and more debugging-oriented).
</content>
</entry>
<entry>
<title>emacs: Special handling for version mismatch errors</title>
<updated>2012-12-16T21:22:14Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-12-16T03:17:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0df6dcfe7631b032e26c15ebb9627b3699200022'/>
<id>urn:sha1:0df6dcfe7631b032e26c15ebb9627b3699200022</id>
<content type='text'>
Since Emacs has more semantic information, we suppress the generic
format version error from the CLI and give a more informative error.
</content>
</entry>
<entry>
<title>emacs: Use unified error handling in search</title>
<updated>2012-12-16T21:17:41Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-12-15T20:04:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=19e5b2d912b52145403c3f11b0c30c84d7f2b409'/>
<id>urn:sha1:19e5b2d912b52145403c3f11b0c30c84d7f2b409</id>
<content type='text'>
This slightly changes the output of an existing test since we now
report non-zero exits with a pop-up buffer instead of at the end of
the search results.
</content>
</entry>
<entry>
<title>emacs: Improve error handling for notmuch-call-notmuch-json</title>
<updated>2012-12-16T21:04:08Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-12-15T20:04:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e1d5e881568afd6bcdc145a7f035e207f8ff3884'/>
<id>urn:sha1:e1d5e881568afd6bcdc145a7f035e207f8ff3884</id>
<content type='text'>
This checks for non-zero exit status from JSON CLI calls and pops up
an error buffer with stderr and stdout.  A consequence of this is that
show and reply now handle errors, rather than ignoring them.
</content>
</entry>
<entry>
<title>emacs: Factor out synchronous notmuch JSON invocations</title>
<updated>2012-12-16T21:00:22Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-12-15T20:04:16Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=66c935cff37fcab1ef7b0a5cecf5bc1c62d8d2ed'/>
<id>urn:sha1:66c935cff37fcab1ef7b0a5cecf5bc1c62d8d2ed</id>
<content type='text'>
Previously this code was duplicated between show and reply.  This
factors out synchronously invoking notmuch and parsing the output as
JSON.
</content>
</entry>
<entry>
<title>emacs: Centralize notmuch command error handling</title>
<updated>2012-12-16T20:58:14Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-12-15T20:04:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=693cf03cee4ce4a805905ee8ef5faaae7f9af10b'/>
<id>urn:sha1:693cf03cee4ce4a805905ee8ef5faaae7f9af10b</id>
<content type='text'>
This provides library functions for unified handling of errors from
the notmuch CLI.  Follow-up patches will convert some scattered error
handling to use this and add error handling where we currently ignore
errors.
</content>
</entry>
<entry>
<title>emacs: Fix bug in resynchronizing after a JSON parse error</title>
<updated>2012-12-15T17:47:49Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-12-14T15:07:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d0ebd6cb53610f0d06014a07cfa405dbe1547430'/>
<id>urn:sha1:d0ebd6cb53610f0d06014a07cfa405dbe1547430</id>
<content type='text'>
Previously, if the input stream consisted only of an error message,
notmuch-json-begin-compound would signal a (wrong-type-argument
number-or-marker-p nil) error when reaching the end of the error
message.  This happened because notmuch-json-scan-to-value would think
that it reached a value and put the parser into the 'value state.
Even after notmuch-json-begin-compound signaled the syntax error, the
parser would remain in this state and when the resynchronization logic
reached the end of the buffer, the parser would fail because the
'value state indicates that characters are available.

This fixes this problem by restoring the parser's previous state if it
encounters a syntax error.
</content>
</entry>
<entry>
<title>emacs: stash bugfix</title>
<updated>2012-12-06T21:12:47Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2012-12-05T12:20:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5382eebcdcdb50625c038c6caa89968d2f403bd1'/>
<id>urn:sha1:5382eebcdcdb50625c038c6caa89968d2f403bd1</id>
<content type='text'>
Currently an attempt to stash a non-existent field (eg cc when not
present) throws an error. Catch this case and give the user a warning
message.
</content>
</entry>
<entry>
<title>emacs: drop support for deprecated notmuch-folders</title>
<updated>2012-12-04T13:08:02Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2012-12-03T21:23:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fb6edb08005fdae210ed4fdc6ac654db236b8ed2'/>
<id>urn:sha1:fb6edb08005fdae210ed4fdc6ac654db236b8ed2</id>
<content type='text'>
Remove notmuch-folders which has been deprecated since

commit a4669217600e4536dc0c49f0255af5e2d9bc183f
Author: Carl Worth &lt;cworth@cworth.org&gt;
Date:   Mon Apr 26 22:42:07 2010 -0700

    emacs: Rip out all of the notmuch-folder code.

This lets us simplify the notmuch-saved-searches code slightly.
</content>
</entry>
<entry>
<title>emacs: Move the incremental JSON parser to notmuch-lib.el</title>
<updated>2012-10-28T12:42:18Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2012-10-27T09:34:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=42391b405610f48d81a369e899d0be9c9b0ee969'/>
<id>urn:sha1:42391b405610f48d81a369e899d0be9c9b0ee969</id>
<content type='text'>
This just moves the newly split out incremental json parser (together
with its state variables) to lib.

There should be no functional change.
</content>
</entry>
</feed>
