From: David Bremner Date: Wed, 5 Jan 2022 01:06:06 +0000 (-0400) Subject: emacs: use --exclude=false when counting total messages X-Git-Tag: 0.35_rc0~32 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=cc180507b03d9826c92d48ee91dbd9bb5f15cd56 emacs: use --exclude=false when counting total messages Even if a user excludes a large fraction of their messages, they still nonetheless exist and are searchable. --- diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 50b6f303..9ac52c11 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -785,7 +785,7 @@ Complete list of currently available key bindings: :help-echo "Refresh" (notmuch-hello-nice-number (string-to-number - (car (notmuch--process-lines notmuch-command "count"))))) + (car (notmuch--process-lines notmuch-command "count" "--exclude=false"))))) (widget-insert " messages.\n"))) (defun notmuch-hello-insert-saved-searches () diff --git a/test/T440-emacs-hello.sh b/test/T440-emacs-hello.sh index dc80cc75..842781a4 100755 --- a/test/T440-emacs-hello.sh +++ b/test/T440-emacs-hello.sh @@ -69,7 +69,6 @@ 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