<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/emacs/notmuch.el, branch nmweb</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=nmweb</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=nmweb'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2022-11-05T17:13:43Z</updated>
<entry>
<title>emacs: fix dangling overlays in notmuch-search</title>
<updated>2022-11-05T17:13:43Z</updated>
<author>
<name>Matt Armstrong</name>
<email>matt@rfc20.org</email>
</author>
<published>2022-10-13T03:20:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b6565c1c54e35563843e7ddece601680170bb84a'/>
<id>urn:sha1:b6565c1c54e35563843e7ddece601680170bb84a</id>
<content type='text'>
notmuch-search-insert-authors now sets the evaporate property on the
ellipsis overlays.  Emacs will delete them when the buffer contents
are zeroed out, which happens with `notmuch-refresh-buffer`.  This
prevents them from being collapsed to zero-width overlays in position
1.  See Emacs bug#58479.  An upcoming change in Emacs will make these
dangling overlays visible to the user.
</content>
</entry>
<entry>
<title>emacs: add notmuch-search-edit-search and notmuch-tree-edit-search</title>
<updated>2022-09-23T23:23:58Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2022-09-18T13:05:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3db892f43b4ac333a09dd05c8f230bf3f8d2b9e9'/>
<id>urn:sha1:3db892f43b4ac333a09dd05c8f230bf3f8d2b9e9</id>
<content type='text'>
...and bind these to "E" in their respective keymaps.

Expected to be called interactively, then using read-from-minibuffer
with current search string as initial contents for editing.
(Noninteractive use makes little sense, but is supported.)

With this one can expand (as an opposite to limit) their
query and have e.g. (some of their) saved searches as search
"templates".

While at it, removed `(defvar notmuch-search-query-string)` from
notmuch-tree.el; it is unused (`notmuch-tree-basic-query` is used
instead).

Thanks to Jose Antonio Ortega Ruiz for his example for notmuch-tree
code, and better interactive use.
</content>
</entry>
<entry>
<title>emacs: update defcustom for notmuch-search-result-format.</title>
<updated>2022-07-30T11:52:26Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-07-16T21:22:23Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4237409fafb429b6411049981699041e7627d720'/>
<id>urn:sha1:4237409fafb429b6411049981699041e7627d720</id>
<content type='text'>
It seems redundant to have the previous example, since the default
value is always show by describe variable.

Enforce more restrictions on the keys in the alist, since arbitrary
strings don't work as field names.

Document that functions can be used in lieu of field names.
</content>
</entry>
<entry>
<title>emacs: Make notmuch-show-next-thread return nil on failure</title>
<updated>2022-06-13T11:06:51Z</updated>
<author>
<name>Leo Okawa Ericson</name>
<email>git@relevant-information.com</email>
</author>
<published>2022-06-09T15:18:22Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fb4a0967cab7df737d5d53199a48a0e79c429b61'/>
<id>urn:sha1:fb4a0967cab7df737d5d53199a48a0e79c429b61</id>
<content type='text'>
Having notmuch-show-next-thread return non-nil on success and nil on
failure makes it easier for users to interact with notmuch via elisp.

This commit changes notmuch-search-show-thread too since the return
value of notmuch-show-next-thread depends on notmuch-search-show-thread.

Amended by db: fix whitespace in T450-emacs-show
</content>
</entry>
<entry>
<title>emacs: escape quote in notmuch-search-result-format docstring</title>
<updated>2022-02-16T11:56:42Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-02-16T11:56:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6286b76a69f11a72927c96a928d4493cab2237ce'/>
<id>urn:sha1:6286b76a69f11a72927c96a928d4493cab2237ce</id>
<content type='text'>
Prevent Emacs' mangling of quotes, which breaks the code sample.
</content>
</entry>
<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>
</feed>
