<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/emacs/notmuch.el, branch 0.35</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.35</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.35'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2022-01-24T00:47:49Z</updated>
<entry>
<title>emacs: customizable names for search buffers</title>
<updated>2022-01-24T00:47:49Z</updated>
<author>
<name>jao</name>
<email>jao@gnu.org</email>
</author>
<published>2022-01-23T19:54:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=15207652a1e52f995d08eb5645f28531b5e19d46'/>
<id>urn:sha1:15207652a1e52f995d08eb5645f28531b5e19d46</id>
<content type='text'>
Customizable names for buffers presenting search results, via two
custom variables (notmuch-search-buffer-name-format and
notmuch-saved-search-buffer-name-format), defaulting to values
currently used for plain searches and including too tree and
unthreaded search buffers.

Amended by db: spelling fix.
</content>
</entry>
<entry>
<title>emacs: run notmuch-search-hook lazily</title>
<updated>2021-12-04T16:11:52Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-09-13T01:03:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=eafb033d3220f1388f434dc29618924659fc2d33'/>
<id>urn:sha1:eafb033d3220f1388f434dc29618924659fc2d33</id>
<content type='text'>
In message id:YT3ueuZHKW931NW3@localhost, Fabio Natali isolated a
visual glitch caused by running notmuch-search-hook too early. This
change moves the running of that hook to
notmuch-search-process-filter, which ensures there is some output in
the buffer before running the hook. Since n-s-p-f can be called many
times for a given buffer, add a buffer local flag to make sure it is
only run once per buffer.
</content>
</entry>
<entry>
<title>emacs: improve notmuch-*-from-current-query docstrings</title>
<updated>2021-10-30T18:19:10Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-23T13:12:58Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=78416a3e97fd19df5c89cdaf564c76be0edea740'/>
<id>urn:sha1:78416a3e97fd19df5c89cdaf564c76be0edea740</id>
<content type='text'>
Err on the side of providing better user documentation, rather than
documentation for developers.
</content>
</entry>
<entry>
<title>emacs: wrap process-lines</title>
<updated>2021-09-11T13:16:47Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-08-29T19:23:29Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a890241138ea468f8a275941b02da39b4e894c1e'/>
<id>urn:sha1:a890241138ea468f8a275941b02da39b4e894c1e</id>
<content type='text'>
Initially just set the working directory, to avoid (the implicit)
call-process crashing when the default-directory points to a
non-existent location.

Use of a macro here is over-engineering for this change, but the same
change needs to be applied to several other process creation
primitives.
</content>
</entry>
<entry>
<title>emacs: Allow functions in notmuch-search-result-format</title>
<updated>2021-09-09T01:59:48Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2021-02-21T15:19:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4f4ec48df25c8d2963e7124d2781b13e5a7f6a78'/>
<id>urn:sha1:4f4ec48df25c8d2963e7124d2781b13e5a7f6a78</id>
<content type='text'>
If the car of an element in notmuch-search-result-format is a
function, insert the result of calling the function into the buffer.

This allows a user to generate custom fields in the output of a search
result. For example, with:

(defun -notmuch-result-flags (format-string result)
  (let ((tags-to-letters '(("flagged" . "!")
			   ("unread" . "u")
			   ("mine" . "m")
			   ("sent" . "s")
			   ("replied" . "r")))
	(tags (plist-get result :tags)))

    (format format-string
	    (mapconcat (lambda (t2l)
			 (if (member (car t2l) tags)
			     (cdr t2l)
			   " "))
		       tags-to-letters ""))))

(setq notmuch-search-result-format '((-notmuch-result-flags . "%s ")
				     ("date" . "%12s ")
				     ("count" . "%9s ")
				     ("authors" . "%-30s ")
				     ("subject" . "%s ")
				     ("tags" . "(%s)")))

The first few characters on each line of the search result are used to
show information about some significant tags associated with the
thread.
</content>
</entry>
<entry>
<title>emacs: Use pcase in notmuch-search-insert-field</title>
<updated>2021-09-09T01:59:25Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2021-02-21T15:19:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=071fb57a35fa330785f75c26734133732560414e'/>
<id>urn:sha1:071fb57a35fa330785f75c26734133732560414e</id>
<content type='text'>
Rather than lots of string-equal calls, use the pcase macro.
</content>
</entry>
<entry>
<title>emacs: fix some option type declarations</title>
<updated>2021-08-30T00:45:05Z</updated>
<author>
<name>Jonas Bernoulli</name>
<email>jonas@bernoul.li</email>
</author>
<published>2021-07-19T11:31:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=01298a8437df75f0cd693f0e0547def940dc0aa3'/>
<id>urn:sha1:01298a8437df75f0cd693f0e0547def940dc0aa3</id>
<content type='text'>
Also improve their doc-strings.
</content>
</entry>
<entry>
<title>CLI: define and use format version 5</title>
<updated>2021-08-22T14:05:13Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-08-22T00:00:11Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=731697d671749a13634a2a4b843ce62f2927f64f'/>
<id>urn:sha1:731697d671749a13634a2a4b843ce62f2927f64f</id>
<content type='text'>
This is a bit of a cheat, since the format does not actually
change. On the other hand it is fairly common to do something like
this to shared libary SONAMEs when the ABI changes in some subtle way.
It does rely on the format-version argument being early enough on the
command line to generate a sensible error message.
</content>
</entry>
<entry>
<title>emacs: fix declare-function definitions with related line breaks</title>
<updated>2021-06-05T11:24:51Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2021-01-16T17:17:09Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=03366a3c5aa313de41bddd61dedc5b5c002e0469'/>
<id>urn:sha1:03366a3c5aa313de41bddd61dedc5b5c002e0469</id>
<content type='text'>
- declare-function notmuch-unthreaded lacked file name
- declare-function notmuch-search had differently named last arg
  - note: check-declare-directory did not complain about that
- declare-function notmuch-search-show-thread without nil
- some functions declared to be in different file than those
  existed ("notmuch" -&gt; "notmuch-lib")

- some related function/declare lines were (/are now) wider than
  80-columns; added line breaks (and proper indentation) there
</content>
</entry>
<entry>
<title>emacs: drop setting mail-user-agent, and document how to set it</title>
<updated>2021-06-04T23:05:31Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-06-04T23:05:31Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d7ddfa0d0ec62c10ecd60779ca1edd9b6973593b'/>
<id>urn:sha1:d7ddfa0d0ec62c10ecd60779ca1edd9b6973593b</id>
<content type='text'>
After some discussion [1], I decided it is better to make notmuch users
who rely on this behaviour customize mail-user-agent. This is
consistent with the behaviour of other emacs mail packages.

[1]: id:87k0nuhfrk.fsf@toryanderson.com
</content>
</entry>
</feed>
