emacs: notmuch-search-stash-thread-id: use notmuch-search-query-string

No longer use the function `notmuch-search-get-query', which does
nothing but return the value of that variable.  That function was
added in [1: f47eeac0] for use in `notmuch-read-query' along-side
related `notmuch-show-get-query' and `notmuch-tree-get-query' but
using it here makes little sense.

1: f47eeac0b0
   emacs: set default in notmuch-read-query
This commit is contained in:
Jonas Bernoulli 2021-01-10 15:01:04 +01:00 committed by David Bremner
parent 42d32713be
commit c6ac1121d4

View file

@ -230,7 +230,7 @@ there will be called at other points of notmuch execution."
(defun notmuch-stash-query () (defun notmuch-stash-query ()
"Copy current query to kill-ring." "Copy current query to kill-ring."
(interactive) (interactive)
(notmuch-common-do-stash (notmuch-search-get-query))) (notmuch-common-do-stash notmuch-search-query-string))
;;; Movement ;;; Movement