X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-jump.el;h=506ae2c8e399785c9f56169a1f16589c5d3ad807;hb=fd6f65f241854cd55e7e4d7c9cb9a71bd9f70cb4;hp=20e24b252630fe2992092cbeac8e8f606f27f1c9;hpb=961937988e5c8947ddabdaa34454309912fc809b;p=notmuch diff --git a/emacs/notmuch-jump.el b/emacs/notmuch-jump.el index 20e24b25..506ae2c8 100644 --- a/emacs/notmuch-jump.el +++ b/emacs/notmuch-jump.el @@ -54,7 +54,9 @@ fast way to jump to a saved search from anywhere in Notmuch." (oldest-first t) (otherwise (default-value 'notmuch-search-oldest-first))))) (push (list key name - `(lambda () (notmuch-search ',query ',oldest-first))) + (if (eq (plist-get saved-search :search-type) 'tree) + `(lambda () (notmuch-tree ',query)) + `(lambda () (notmuch-search ',query ',oldest-first)))) action-map))))) (setq action-map (nreverse action-map))