]> git.cworth.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: Add a notmuch-saved-searches function.
[notmuch] / emacs / notmuch.el
index 4894012a09b02617cde6d2ffd07aa4d7131806c7..469d5fbdc20a6bf4ee45f3fb6fd4afb45bbb2ccc 100644 (file)
@@ -665,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))