]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: use --exclude=false when checking for empty searches
authorDavid Bremner <david@tethera.net>
Wed, 5 Jan 2022 01:06:05 +0000 (21:06 -0400)
committerDavid Bremner <david@tethera.net>
Thu, 20 Jan 2022 19:31:36 +0000 (15:31 -0400)
In particular tags that only occur on otherwise excluded messages do
not show up in "All tags" without this change. The reported numbers
_do_ take excludes into account, so it is possible that
searches (e.g. the aformentioned tags) will show up with a count of
zero.

emacs/notmuch-hello.el

index fc007c4c450476a54a23203a34e96bfdd729f0f0..50b6f30330ba393ec9bb4de38b20fe58d9acad31 100644 (file)
@@ -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" "--batch") 0)
+                                            t t nil "count" "--exclude=false" "--batch") 0)
       (notmuch-logged-error
        "notmuch count --batch failed"
        "Please check that the notmuch CLI is new enough to support `count