branch: externals/consult
commit 0fa264c2efc17e564af406d60dbe77ae2fb6f010
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    consult-async-map: Remap minibuffer-complete-history (Fix #613)
---
 consult.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/consult.el b/consult.el
index 94250f35f5..af58921e2f 100644
--- a/consult.el
+++ b/consult.el
@@ -2010,6 +2010,10 @@ argument list :command and a highlighting function 
:highlight."
   (let ((map (make-sparse-keymap)))
     ;; Async keys overwriting some unusable defaults for the default completion
     (define-key map [remap minibuffer-complete-word] #'self-insert-command)
+    ;; Remap Emacs 29 history and default completion for now.
+    ;; See https://github.com/minad/consult/issues/613
+    (define-key map [remap minibuffer-complete-defaults] #'ignore)
+    (define-key map [remap minibuffer-complete-history] #'consult-history)
     map)
   "Keymap added for commands with asynchronous candidates.")
 

Reply via email to