Revert "emacs: use --exclude=false when checking for empty searches"

Revert commit 8370e3cfe2, and remark the
corresponding test as broken. Also update the expected output of the
broken test to show excludes active in the user defined saved searches.
This commit is contained in:
David Bremner 2022-01-22 13:44:39 -04:00
parent 2786aa4d54
commit 68640fd967
3 changed files with 2 additions and 5 deletions

View file

@ -570,7 +570,7 @@ options will be handled as specified for
(plist-get options :filter)))) (plist-get options :filter))))
"\n"))) "\n")))
(unless (= (notmuch--call-process-region (point-min) (point-max) notmuch-command (unless (= (notmuch--call-process-region (point-min) (point-max) notmuch-command
t t nil "count" "--exclude=false" "--batch") 0) t t nil "count" "--batch") 0)
(notmuch-logged-error (notmuch-logged-error
"notmuch count --batch failed" "notmuch count --batch failed"
"Please check that the notmuch CLI is new enough to support `count "Please check that the notmuch CLI is new enough to support `count

View file

@ -69,6 +69,7 @@ notmuch tag -$tag '*'
test_expect_equal_file $EXPECTED/notmuch-hello-long-names OUTPUT test_expect_equal_file $EXPECTED/notmuch-hello-long-names OUTPUT
test_begin_subtest "All tags show up" test_begin_subtest "All tags show up"
test_subtest_known_broken
tag=exclude_me tag=exclude_me
notmuch tag +$tag '*' notmuch tag +$tag '*'
notmuch config set search.exclude_tags $tag notmuch config set search.exclude_tags $tag

View file

@ -1,9 +1,5 @@
Welcome to notmuch. You have 52 messages. Welcome to notmuch. You have 52 messages.
Saved searches: [edit]
52 inbox 52 unread 52 all mail
Search: . Search: .
All tags: [hide] All tags: [hide]