]> git.eshelyaron.com Git - emacs.git/commitdiff
Give Completion Preview active bindings higher precedence
authorEshel Yaron <me@eshelyaron.com>
Mon, 18 Nov 2024 13:02:20 +0000 (14:02 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 18 Nov 2024 13:02:20 +0000 (14:02 +0100)
lisp/completion-preview.el

index 530b116da7c5c1ca99017dcbdad999097b94bc4f..744ca004e76f7d66be94156d8fdadd90e841e743 100644 (file)
@@ -367,7 +367,10 @@ set to the value of this option while the completion preview is visible."
                    (= (point) (completion-preview--get 'completion-preview-end)))
           (completion-preview--modify-cursor))
         (setq completion-preview--window (selected-window)
-              completion-preview--buffer (current-buffer)))
+              completion-preview--buffer (current-buffer))
+        (setf (alist-get 'completion-preview-active-mode
+                         minor-mode-overriding-map-alist)
+              completion-preview-active-mode-map))
     (remove-hook 'post-command-hook #'completion-preview--cleanup)
     (completion-preview--restore-cursor)
     (setq completion-preview--window nil