[PATCH] emacs: use query name for tree saved-search buffer names

Subject: [PATCH] emacs: use query name for tree saved-search buffer names

Date: Sat, 8 Jan 2022 20:41:21 +0000

To: notmuch@notmuchmail.org

Cc: jao

From: jao


This simply mimics what we already do for non-tree searches, and makes
up for nicer buffer names.  Note that this patch only applies to
queries not coming from a search widget in the hello buffer.

Signed-off-by: jao <jao@gnu.org>
---
 emacs/notmuch-hello.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index fc007c4c..9f42a90b 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -487,7 +487,7 @@ diagonal."
   (cl-case (widget-get widget :notmuch-search-type)
    (tree
     (notmuch-tree (widget-get widget :notmuch-search-terms)
-		  nil nil nil nil nil nil
+		  nil nil (widget-value widget) nil nil nil
 		  (widget-get widget :notmuch-search-oldest-first)))
    (unthreaded
     (notmuch-unthreaded (widget-get widget :notmuch-search-terms)))
-- 
2.34.1

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: