X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-tree.el;h=e9249da11c290cbd8625ece623fa29884b36d655;hb=f47eeac0b0186c3559eb559c4f0bee0e1fac1961;hp=7d5f475080cbae5d6708206173b75884af3cdd86;hpb=7f2bbe93a557c22277b46ad6048742222d80ed68;p=notmuch diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 7d5f4750..e9249da1 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -897,6 +897,15 @@ the same as for the function notmuch-tree." (set-process-filter proc 'notmuch-tree-process-filter) (set-process-query-on-exit-flag proc nil)))) +(defun notmuch-tree-get-query () + "Return the current query in this tree buffer" + (if notmuch-tree-query-context + (concat notmuch-tree-basic-query + " and (" + notmuch-tree-query-context + ")") + notmuch-tree-basic-query)) + (defun notmuch-tree (&optional query query-context target buffer-name open-target) "Display threads matching QUERY in Tree View.