]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: notmuch-search-stash-thread-id: use notmuch-search-query-string
authorJonas Bernoulli <jonas@bernoul.li>
Sun, 10 Jan 2021 14:01:04 +0000 (15:01 +0100)
committerDavid Bremner <david@tethera.net>
Fri, 15 Jan 2021 10:45:09 +0000 (06:45 -0400)
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: f47eeac0b0186c3559eb559c4f0bee0e1fac1961
   emacs: set default in notmuch-read-query

emacs/notmuch.el

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