X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/blobdiff_plain/961937988e5c8947ddabdaa34454309912fc809b..3b63856568a8b0153801386fcc2030b228a5f99d:/emacs/notmuch-jump.el 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))