notmuch/emacs
Mohsin Kaleem cd89065dc3 emacs: Add new option notmuch-search-hide-excluded
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
2024-04-06 15:03:45 -03:00
..
.gitignore emacs: build docstring (rsti) files 2018-12-08 08:49:31 -04:00
coolj.el emacs: update coolj-line-prefix-regexp to make space optional 2021-12-29 14:24:21 -04:00
make-deps.el emacs: use lexical-bindings in all libraries 2021-01-13 07:16:04 -04:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local emacs: add notmuch-logo.svg and use it in emacs mua on graphic displays 2021-12-23 08:16:49 -04:00
notmuch-address.el emacs/address: rewrite docstring for n-a-selection-function 2023-10-06 20:37:16 -03:00
notmuch-company.el emacs: Add compatibility for org-msg.el 2021-06-24 17:26:43 -03:00
notmuch-compat.el emacs: restore tag-changes and query bindings for tag hooks 2021-05-15 08:34:28 -03:00
notmuch-crypto.el emacs: wrap call-process 2021-09-11 11:11:29 -03:00
notmuch-draft.el emacs: wrap call-process 2021-09-11 11:11:29 -03:00
notmuch-emacs-mua notmuch-emacs-mua: avoid extra separators at the end of the line 2023-12-01 07:22:26 -04:00
notmuch-emacs-mua.desktop emacs: add keywords to notmuch-emacs-mua.desktop 2019-06-29 21:06:18 +02:00
notmuch-hello.el emacs: Add new option notmuch-search-hide-excluded 2024-04-06 15:03:45 -03:00
notmuch-jump.el emacs: Add new option notmuch-search-hide-excluded 2024-04-06 15:03:45 -03:00
notmuch-lib.el emacs: Add new option notmuch-search-hide-excluded 2024-04-06 15:03:45 -03:00
notmuch-logo.svg emacs: add notmuch-logo.svg and use it in emacs mua on graphic displays 2021-12-23 08:16:49 -04:00
notmuch-maildir-fcc.el emacs: use cached encoded copy for fcc 2022-01-26 07:22:09 -04:00
notmuch-message.el emacs: make subr-x available in all libraries 2021-01-15 06:47:10 -04:00
notmuch-mua.el emacs: Autoload notmuch-user-agent related functions 2024-04-04 08:20:51 -03:00
notmuch-parser.el emacs: update quoting in docstrings 2023-10-06 20:36:56 -03:00
notmuch-pkg.el.tmpl NEWS: At least Emacs 25.1 is required now 2020-08-09 21:14:36 -03:00
notmuch-print.el emacs: update quoting in docstrings 2023-10-06 20:36:56 -03:00
notmuch-query.el emacs: mark notmuch-query.el as obsolete 2022-07-03 17:08:08 -03:00
notmuch-show.el emacs: wrap docstrings 2023-10-06 20:37:11 -03:00
notmuch-tag.el emacs: update quoting in docstrings 2023-10-06 20:36:56 -03:00
notmuch-tree.el emacs: Add new option notmuch-search-hide-excluded 2024-04-06 15:03:45 -03:00
notmuch-version.el.tmpl emacs: Increase consistency of library headers 2020-08-09 21:14:36 -03:00
notmuch-wash.el emacs: update quoting in docstrings 2023-10-06 20:36:56 -03:00
notmuch.el emacs: Add new option notmuch-search-hide-excluded 2024-04-06 15:03:45 -03:00
rstdoc.el emacs/rstdoc: escape '*' 2021-08-22 07:12:03 -07:00
rstdoc.rsti emacs: initial version of rstdoc.el 2018-12-08 08:45:48 -04:00