aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-01-22 13:44:39 -0400
committerDavid Bremner <david@tethera.net>2022-01-23 14:21:46 -0400
commit68640fd9670d12ea80d313fe30bfe42619e73f47 (patch)
tree3d8622240791f400fa6d579bb6965e5f06ec82f3
parent2786aa4d548d28579c761e9358d44c84dfb29068 (diff)
Revert "emacs: use --exclude=false when checking for empty searches"
Revert commit 8370e3cfe2dd8a79323613c2bbf2f11db6134dac, 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.
-rw-r--r--emacs/notmuch-hello.el2
-rwxr-xr-xtest/T440-emacs-hello.sh1
-rw-r--r--test/emacs.expected-output/notmuch-hello-all-tags4
3 files changed, 2 insertions, 5 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 9ac52c11..71e91093 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -570,7 +570,7 @@ options will be handled as specified for
(plist-get options :filter))))
"\n")))
(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 count --batch failed"
"Please check that the notmuch CLI is new enough to support `count
diff --git a/test/T440-emacs-hello.sh b/test/T440-emacs-hello.sh
index 842781a4..dc80cc75 100755
--- a/test/T440-emacs-hello.sh
+++ b/test/T440-emacs-hello.sh
@@ -69,6 +69,7 @@ notmuch tag -$tag '*'
test_expect_equal_file $EXPECTED/notmuch-hello-long-names OUTPUT
test_begin_subtest "All tags show up"
+test_subtest_known_broken
tag=exclude_me
notmuch tag +$tag '*'
notmuch config set search.exclude_tags $tag
diff --git a/test/emacs.expected-output/notmuch-hello-all-tags b/test/emacs.expected-output/notmuch-hello-all-tags
index 2802a708..65e479fa 100644
--- a/test/emacs.expected-output/notmuch-hello-all-tags
+++ b/test/emacs.expected-output/notmuch-hello-all-tags
@@ -1,9 +1,5 @@
Welcome to notmuch. You have 52 messages.
-Saved searches: [edit]
-
- 52 inbox 52 unread 52 all mail
-
Search: .
All tags: [hide]