In the search box (and recent searches), notmuch-search-hide-excluded
was not being passed to notmuch-search. This means that excluded
messages were always shown in the results. Fix this by passing the
extra argument.
(setq search (string-trim search))
(let ((history-delete-duplicates t))
(add-to-history 'notmuch-search-history search)))
- (notmuch-search search notmuch-search-oldest-first)))
+ (notmuch-search search notmuch-search-oldest-first notmuch-search-hide-excluded)))
(defun notmuch-hello-add-saved-search (widget &rest _event)
(let ((search (widget-value (widget-get widget :parent)))
test_expect_equal_file $EXPECTED/notmuch-search-tag-inbox-without-excluded OUTPUT
test_begin_subtest "Search from search box doesn't contain excluded mail by default"
-test_subtest_known_broken
test_emacs '(notmuch-hello)
(goto-char (point-min))
(re-search-forward "Search:")
test_expect_equal_file $EXPECTED/notmuch-search-tag-inbox-without-excluded OUTPUT
test_begin_subtest "Search from search box doesn't contain excluded mail by default"
-test_subtest_known_broken
test_emacs '(notmuch-hello)
(goto-char (point-min))
(re-search-forward "Search:")