<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/emacs/notmuch-lib.el, branch master</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=master</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2024-04-06T18:03:45Z</updated>
<entry>
<title>emacs: Add new option notmuch-search-hide-excluded</title>
<updated>2024-04-06T18:03:45Z</updated>
<author>
<name>Mohsin Kaleem</name>
<email>mohkale@kisara.moe</email>
</author>
<published>2024-03-10T18:57:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=cd89065dc36e36b22a2a53832d2cac9b06fba41c'/>
<id>urn:sha1:cd89065dc36e36b22a2a53832d2cac9b06fba41c</id>
<content type='text'>
The new notmuch-search-hide-excluded option allows users to configure whether
to show or hide excluded messages (as determined by search.exclude_tags
in the local notmuch config file). It defaults to true for now to maintain
backwards-compatibility with how notmuch-{search,tree} already worked.

New commands notmuch-search-toggle-hide-excluded and
notmuch-tree-toggle-exclude have also been added. They toggle the value
of notmuch-search-hide-excluded for the search in the current search or
tree buffer. It's bound to "i" in the respective keymaps for these
modes.

Lastly I've amended some calls to notmuch-tree and notmuch-unthreaded
which didn't pass through the buffer local value of
notmuch-search-oldest-first (and now notmuch-search-exclude).
Examples of where I've done this include:
  + notmuch-jump-search
  + notmuch-tree-from-search-current-query
  + notmuch-unthreaded-from-search-current-query
  + notmuch-tree-from-search-thread

A new test file for Emacs has been added which covers the usage of the
new `notmuch-search-hide-excluded' option and interactively hiding or
showing mail with excluded tags. These test cover the basic usage of
the `notmuch-search-toggle-hide-excluded' command in notmuch-search,
notmuch-tree and notmuch-unthreaded searches. These tests also cover
the persistence of the current value of the hide-excluded mail option
as a user switches from between these different search commands.

[1]: id:87ilxlxsng.fsf@kisara.moe

Amended-by: db, fix indentation in T461-emacs-search-exclude.sh
</content>
</entry>
<entry>
<title>emacs: update quoting in docstrings</title>
<updated>2023-10-06T23:36:56Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2023-10-01T11:43:11Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fc1c81c3784a699d57c15ab743c819704964430b'/>
<id>urn:sha1:fc1c81c3784a699d57c15ab743c819704964430b</id>
<content type='text'>
The complicated looking escapes are needed to avoid compile time
warnings.  (info "(elisp) Text Quoting Style") for details.
</content>
</entry>
<entry>
<title>emacs: save undisplayer function for MIME parts</title>
<updated>2023-10-01T10:47:16Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2023-09-24T09:51:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b1129d905af5643ffec6a19d6cb1cf76abf9d9ce'/>
<id>urn:sha1:b1129d905af5643ffec6a19d6cb1cf76abf9d9ce</id>
<content type='text'>
For some kinds of MIME parts (at least images), our trickery with
overlays will not work, so save the more drastic function created by
Gnus that actually deletes the part from the buffer. In an ideal world
we would return this function as (part of) a value, but here the call
stack is too complicated for anything that simple, so we stash it in
the part plist and rely on that being preserved (unlike the mm handle,
which is transient).
</content>
</entry>
<entry>
<title>emacs/show: provide notmuch-show-choose-duplicate</title>
<updated>2022-07-30T11:42:12Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-07-01T21:45:45Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b3d466bf397a6f8d70bb50d6fa22c58e3d44badf'/>
<id>urn:sha1:b3d466bf397a6f8d70bb50d6fa22c58e3d44badf</id>
<content type='text'>
This new command allows the user to interactively choose a different
duplicate (file) to display for a given message in
notmuch-show-mode. Since both tree and unthreaded view use
notmuch-show-mode, this provides the same facility there.
</content>
</entry>
<entry>
<title>emacs: mark notmuch-query.el as obsolete</title>
<updated>2022-07-03T20:08:08Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-06-28T11:50:55Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5500868bd96f9461a230d16839591cb7ebc035df'/>
<id>urn:sha1:5500868bd96f9461a230d16839591cb7ebc035df</id>
<content type='text'>
The only functionality actually used by notmuch is the base function
notmuch-query-get-threads; the other functions in this file have
nothing to do with that (single) use.  Move that function into
notmuch-lib.el and rename to reflect use. Deprecate the other
functions in notmuch-query.el.
</content>
</entry>
<entry>
<title>emacs:  document/defcustom notmuch-multipart/alternative-discouraged</title>
<updated>2022-05-21T01:40:32Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-05-14T11:26:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fd46fc1977e3b0712c07cc4610edee2d91ec5ee0'/>
<id>urn:sha1:fd46fc1977e3b0712c07cc4610edee2d91ec5ee0</id>
<content type='text'>
This variable is important for people who want to change the default
behaviour when displaying multipart/alternative messages.  Previously
it was undocumented.  Add a defcustom to help users and copy some
documentation from the wiki. The usual machinery of re-using
docstrings is a bit tricky to use here because it mangles the example
lisp code, and the link to the info node should not be in e.g. the
html page.

Add a simple test to make sure the switch from defvar to defcustom did
not break something obvious.
</content>
</entry>
<entry>
<title>emacs: factor out calculation of mm-inline-override-types</title>
<updated>2022-05-16T10:12:28Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-03-19T10:07:53Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=817e53f4dbda45bfad22bc9b9fb75d9c90c49774'/>
<id>urn:sha1:817e53f4dbda45bfad22bc9b9fb75d9c90c49774</id>
<content type='text'>
The intended use case of this new function is to make reply behaviour
track that of show with respect to attachments.

Also fix the glob (which worked by fluke) into the documented regexp.
</content>
</entry>
<entry>
<title>emacs: redirect undo to notmuch-tag-undo</title>
<updated>2022-02-26T12:00:11Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-02-12T20:27:40Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=19cf3910a553e5325d8da3a73669c6c452dbd99c'/>
<id>urn:sha1:19cf3910a553e5325d8da3a73669c6c452dbd99c</id>
<content type='text'>
The double remap is a bit ugly, but it seems better than adding
another layer of keymaps for those modes where notmuch-tag-undo makes
sense.
</content>
</entry>
<entry>
<title>emacs: wrap call-process</title>
<updated>2021-09-11T14:11:29Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-09-11T14:04:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e722b4f48c90ea6536ac7efef47f9d0f3d8cc191'/>
<id>urn:sha1:e722b4f48c90ea6536ac7efef47f9d0f3d8cc191</id>
<content type='text'>
Provide safe working directory
</content>
</entry>
<entry>
<title>emacs: wrap make-process</title>
<updated>2021-09-11T13:27:38Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-08-29T19:23:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=eb226437e1c0da6da86c04c78cbdd2020b982ad6'/>
<id>urn:sha1:eb226437e1c0da6da86c04c78cbdd2020b982ad6</id>
<content type='text'>
Provide a safe working directory.
</content>
</entry>
</feed>
