X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=2c6c89e9ecdd3f64966c46e2155b4f1518f80d48;hb=f47eeac0b0186c3559eb559c4f0bee0e1fac1961;hp=b8e24bc7816f1b7c68926ea03bf2dc12b36d54d9;hpb=7f2bbe93a557c22277b46ad6048742222d80ed68;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index b8e24bc7..2c6c89e9 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1203,6 +1203,15 @@ This includes: - the current message." (list (notmuch-show-get-message-id) (notmuch-show-get-message-ids-for-open-messages))) +(defun notmuch-show-get-query () + "Return the current query in this show buffer" + (if notmuch-show-query-context + (concat notmuch-show-thread-id + " and (" + notmuch-show-query-context + ")") + notmuch-show-thread-id)) + (defun notmuch-show-apply-state (state) "Apply STATE to the current buffer.