mirror of https://github.com/djcb/mu.git
Read query with completion also when editing a bookmark
This wraps up some change that somehow didn't get applied when merging PR #1921 and also offers completion when editing a bookmark. * mu4e/mu4e-headers.el (mu4e-headers-search): Read query with completion also when editing a bookmark.
This commit is contained in:
parent
9367a4dd95
commit
7471536213
|
@ -1647,15 +1647,9 @@ searching. If SHOW is non-nil, show the message with MSGID."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((prompt (mu4e-format (or prompt "Search for: ")))
|
(let* ((prompt (mu4e-format (or prompt "Search for: ")))
|
||||||
(expr
|
(expr
|
||||||
(if edit
|
(if (or (null expr) edit)
|
||||||
(read-string prompt expr)
|
(mu4e-read-query prompt expr)
|
||||||
(or expr
|
expr)))
|
||||||
(minibuffer-with-setup-hook
|
|
||||||
(lambda ()
|
|
||||||
(setq-local completion-at-point-functions
|
|
||||||
#'mu4e~search-query-competion-at-point)
|
|
||||||
(use-local-map mu4e-minibuffer-search-query-map))
|
|
||||||
(read-string prompt nil 'mu4e~headers-search-hist))))))
|
|
||||||
(mu4e-mark-handle-when-leaving)
|
(mu4e-mark-handle-when-leaving)
|
||||||
(mu4e~headers-search-execute expr ignore-history)
|
(mu4e~headers-search-execute expr ignore-history)
|
||||||
(setq mu4e~headers-msgid-target msgid
|
(setq mu4e~headers-msgid-target msgid
|
||||||
|
|
Loading…
Reference in New Issue