]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: filter tag completions by current query
[notmuch] / emacs / notmuch.el
index 1f453357e263fba23d517288541140796aaf4f74..804e78ab8c53cf855cd9a5ea3713f19b40da4886 100644 (file)
@@ -1076,7 +1076,7 @@ current search results AND the additional query string provided."
 Runs a new search matching only messages that match both the
 current search results AND that are tagged with the given tag."
   (interactive
-   (list (notmuch-select-tag-with-completion "Filter by tag: ")))
+   (list (notmuch-select-tag-with-completion "Filter by tag: " notmuch-search-query-string)))
   (notmuch-search (concat notmuch-search-query-string " and tag:" tag) notmuch-search-oldest-first))
 
 ;;;###autoload