]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: Fix notmuch-hello to use its own function for counting search results.
[notmuch] / emacs / notmuch.el
index e20718018a05cd0040f048e4c01ba3cc9f874571..469d5fbdc20a6bf4ee45f3fb6fd4afb45bbb2ccc 100644 (file)
@@ -55,6 +55,7 @@
 (require 'notmuch-show)
 (require 'notmuch-mua)
 (require 'notmuch-hello)
+(require 'notmuch-maildir-fcc)
 
 (defcustom notmuch-search-result-format
   `(("date" . "%s ")
@@ -664,7 +665,7 @@ characters as well as `_.+-'.
   (let* ((folder (rassoc-if (lambda (key)
                              (string-match (concat "^" (regexp-quote key))
                                            query))
-                           notmuch-folders))
+                           (notmuch-saved-searches)))
         (folder-name (car folder))
         (folder-query (cdr folder)))
     (cond ((and folder (equal folder-query query))