]> git.cworth.org Git - notmuch/commitdiff
emacs/hello: fix one case of passing hide-excluded
authorDavid Bremner <david@tethera.net>
Sun, 15 Jun 2025 20:12:35 +0000 (17:12 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 14 Jan 2026 22:56:22 +0000 (07:56 +0900)
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.

emacs/notmuch-hello.el
test/T461-emacs-search-exclude.sh

index 67c805a8549fd3f6d7eb0e9cff1e9f37b1c9be36..eb5d618a420bf897fa6cd7f07e58c47ba5d9aa26 100644 (file)
@@ -438,7 +438,7 @@ supported for \"Customized queries section\" items."
       (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)))
index 5aa1337058f9e8c609e5778f927c4098c86bbbd9..338e1e4e9c973fab9b711810377322d05721b7c8 100755 (executable)
@@ -24,7 +24,6 @@ test_emacs '(notmuch-hello)
 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:")
@@ -37,7 +36,6 @@ test_emacs '(notmuch-hello)
 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:")