]> git.notmuchmail.org Git - notmuch/commit
emacs: set default in notmuch-read-query
authorMark Walters <markwalters1009@gmail.com>
Mon, 23 Jun 2014 21:06:46 +0000 (22:06 +0100)
committerDavid Bremner <david@tethera.net>
Tue, 15 Jul 2014 23:32:49 +0000 (20:32 -0300)
commitf47eeac0b0186c3559eb559c4f0bee0e1fac1961
treef19c3ee157db852d9252e1ab8d5e2625ee28de14
parent7f2bbe93a557c22277b46ad6048742222d80ed68
emacs: set default in notmuch-read-query

This adds the current query as a "default value" to
notmuch-read-qeury. The default value is available via a down-arrow as
opposed to history which is available from the up arrow.

Note if a user presses return in the minibuffer this value is not
returned.

The implementation is simple but notmuch-read-query could be called
via notmuch-search/notmuch-tree etc from any buffer so it makes sense
to put the decision of how to extract the current query in
notmuch-read-query rather than in each of the callers.
emacs/notmuch-show.el
emacs/notmuch-tree.el
emacs/notmuch.el