<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/emacs, branch 0.16</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.16</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.16'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2013-06-01T12:00:40Z</updated>
<entry>
<title>emacs: Use streaming S-expr parser for search</title>
<updated>2013-06-01T12:00:40Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-06-01T00:40:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=89efd5717ab26cf626ceb67964b9b4af8820e52c'/>
<id>urn:sha1:89efd5717ab26cf626ceb67964b9b4af8820e52c</id>
<content type='text'>
In addition to being the Right Thing to do, this noticeably improves
the time taken to display the first page of search results, since it's
roughly an order of magnitude faster than the JSON parser.
Interestingly, it does *not* significantly improve the time to
completely fill a large search buffer because for large search
buffers, the cost of creating author invisibility overlays and
inserting text (which slows down with more overlays) dominates.
However, the time required to display the first page of results is
generally more important to the user experience.
</content>
</entry>
<entry>
<title>emacs: Use async process helper for search</title>
<updated>2013-06-01T11:56:16Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-06-01T00:40:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=08fde50bf3a4c54f6413aff4052e0d84392463f9'/>
<id>urn:sha1:08fde50bf3a4c54f6413aff4052e0d84392463f9</id>
<content type='text'>
Previously, search started the async notmuch process directly.  Now,
it uses `notmuch-start-notmuch'.  This simplifies the process sentinel
a bit and means that we no longer have to worry about errors
interleaved with the JSON output.

We also update the tests of Emacs error handling, since the error
output is now separated from the search results buffer.
</content>
</entry>
<entry>
<title>emacs: Simplify MIME part command implementation</title>
<updated>2013-06-01T01:01:02Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-05-30T01:13:46Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1546387d723ec47cd281f3c2bf6da2fddf18c045'/>
<id>urn:sha1:1546387d723ec47cd281f3c2bf6da2fddf18c045</id>
<content type='text'>
This unifies the part button actions and the underlying part action
functions into single interactive command that simply applies to the
part containing point using the just-added part p-list text property
instead of button properties.  Since all part actions can be performed
by applying the appropriate mm function to an mm-handle, this patch
abstracts out the creation of mm handles, making the implementations
of the part commands trivial.  This also eliminates our special
handling for part save in favor of using the appropriate mm function.

This necessarily modifies the way we handle the default part button
action, but in a way that does not change the meaning of the
notmuch-show-part-button-default-action defcustom.

Since these commands are no longer specific to buttons, this patch
eliminates the extra metadata stored with each button.  This also
eliminates one rather special-purpose macro for a collection of
general purpose part handling utilities.
</content>
</entry>
<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: Use --format-version for search, show, and reply</title>
<updated>2012-12-16T21:22:26Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-12-16T03:17:29Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2cdb3f54f71e5e415a930aaa36452ffe1db04d06'/>
<id>urn:sha1:2cdb3f54f71e5e415a930aaa36452ffe1db04d06</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test: Test search's handling of subprocess errors</title>
<updated>2012-12-16T21:17:58Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-12-15T20:04:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1e12b91b3cf823d21f7edf8c0f1c687df56fec14'/>
<id>urn:sha1:1e12b91b3cf823d21f7edf8c0f1c687df56fec14</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test: emacs: new tests "notmuch-show: {add,remove} multiple tags {to,from} single message"</title>
<updated>2012-12-11T14:01:40Z</updated>
<author>
<name>Pieter Praet</name>
<email>pieter@praet.org</email>
</author>
<published>2012-02-24T22:30:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e7bd40aa4cdc54322297c20d9010f77e6be4fe43'/>
<id>urn:sha1:e7bd40aa4cdc54322297c20d9010f77e6be4fe43</id>
<content type='text'>
* test/emacs:

  - Rename subtests "{Add,Remove} tag from notmuch-show view" to
    "notmuch-show: {add,remove} single tag {to,from} single message"
    to be consistent with the following tests.

  - New subtest "notmuch-show: add multiple tags to single message":
    `notmuch-show-add-tag' ("+") can add multiple tags to a message.

  - New subtest "notmuch-show: remove multiple tags from single message":
    `notmuch-show-remove-tag' ("-") can remove multiple tags from a message.
</content>
</entry>
<entry>
<title>emacs: less guessing of character set in messages</title>
<updated>2012-11-27T02:06:41Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-11-18T20:06:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=59c994e770581acb8effde7057d09823e1194830'/>
<id>urn:sha1:59c994e770581acb8effde7057d09823e1194830</id>
<content type='text'>
The macro with-current-notmuch-show-message executes command
`notmuch show --format=raw id:...` which just outputs the contents
of the mail file verbatim (into temporary buffer). In case e.g. utf-8
locale is used the temporary buffer has buffer-file-coding-system as
utf-8. In this case Emacs converts the data to multibyte format, guessing
that input is in utf-8.
However, the "raw" (MIME) message may contain octet data in any other
8bit format, and as no (MIME-)content spesific handling to the message
is done at this point, conversion to other formats may lose information.
By setting coding-system-for-read 'no-conversion drops the conversion part
and makes this handle input as notmuch-get-bodypart-internal() does.
This marks the broken test in previous change fixed.
</content>
</entry>
<entry>
<title>test/emacs: test saving of attachment containing 8bit octets</title>
<updated>2012-11-27T01:58:15Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-11-18T20:06:24Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0c4dea4e48c4b8c7f9e7a4a19e983b3c0ca81be3'/>
<id>urn:sha1:0c4dea4e48c4b8c7f9e7a4a19e983b3c0ca81be3</id>
<content type='text'>
This test catches the case 8bit octets in an attachment gets converted
or lost when saving attachment to the file.
This test is marked known broken.
</content>
</entry>
<entry>
<title>test: always source test-lib.sh as ./test-lib.sh</title>
<updated>2012-11-25T02:07:46Z</updated>
<author>
<name>Tomi Ollila</name>
<email>too@iki.fi</email>
</author>
<published>2012-11-21T15:16:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3bd8494da0dfef973c1328b16cd848f144e3ac27'/>
<id>urn:sha1:3bd8494da0dfef973c1328b16cd848f144e3ac27</id>
<content type='text'>
There are currently 45 TESTS scripts. 36 of those load
test-lib.sh using '. ./test-lib.sh' and 9 '. test-lib.sh'.

In latter case test-lib.sh is first searched from directories
in PATH (posix) and then from current directory (bash feature).

Changed the 9 files to execute '. ./test-lib.sh'. The test-lib.sh
should never be loaded from directory in PATH.
</content>
</entry>
</feed>
