]> git.notmuchmail.org Git - notmuch/commit
emacs: fix `notmuch-*-filter-by-tag' query strings
authorKristoffer Balintona <krisbalintona@gmail.com>
Thu, 13 Nov 2025 20:39:14 +0000 (14:39 -0600)
committerDavid Bremner <david@tethera.net>
Sat, 24 Jan 2026 23:15:12 +0000 (08:15 +0900)
commit07bb294049e786d1cf6fe07c6bef589826edb973
tree85f25c990ad0d586eaee77189958157ed44da087
parent96174beba63c80a8fb73c1e78e81d04e60e5e6f3
emacs: fix `notmuch-*-filter-by-tag' query strings

`notmuch-tree-filter-by-tag' and `notmuch-search-filter-by-tag' are
described, in their docstrings, as matching all the messages in the
current view that are ALSO tagged by a given tag.  However, since the
current view's search query was not logically grouped together (with
parentheses), the actual behavior was different for sufficiently
complex search queries.

Fix this by grouping the current view's search query in parentheses
first.
emacs/notmuch-tree.el
emacs/notmuch.el