contrib: pick: bugfix use of mini-buffer history

pick was meant to use the same mini-buffer history but this failed
because the interactive definition took place before the use search
mini-buffer history part. Remove the interactive prompt to ensure the
correct history is used.
This commit is contained in:
Mark Walters 2013-09-15 09:19:33 +01:00 committed by David Bremner
parent 302120362e
commit b8faf2b543

View file

@ -899,7 +899,7 @@ The arguments are:
BUFFER-NAME: the name of the buffer to show the pick tree. If BUFFER-NAME: the name of the buffer to show the pick tree. If
it is nil \"*notmuch-pick\" followed by QUERY is used. it is nil \"*notmuch-pick\" followed by QUERY is used.
OPEN-TARGET: If TRUE open the target message in the message pane." OPEN-TARGET: If TRUE open the target message in the message pane."
(interactive "sNotmuch pick: ") (interactive)
(if (null query) (if (null query)
(setq query (notmuch-read-query "Notmuch pick: "))) (setq query (notmuch-read-query "Notmuch pick: ")))
(let ((buffer (get-buffer-create (generate-new-buffer-name (let ((buffer (get-buffer-create (generate-new-buffer-name