Support minibuffer-visible-completions in completing-read-multiple
authorSpencer Baugh <sbaugh@janestreet.com>
Wed, 7 Aug 2024 15:18:02 +0000 (11:18 -0400)
committerJuri Linkov <juri@linkov.net>
Wed, 7 Aug 2024 16:52:36 +0000 (19:52 +0300)
All that's required is to add minibuffer-visible-completions-map on
top of the completing-read-multiple map; this is the same thing that
minibuffer-visible-completions does in completing-read-default.

* lisp/emacs-lisp/crm.el (completing-read-multiple): Add
minibuffer-visible-completions-map (bug#69189)

lisp/emacs-lisp/crm.el

index 253dfc6237aa859330e2cc70550b9d2eab1821e7..422a8d52dcf2cc58f203749f1d38f03420b612ae 100644 (file)
@@ -238,6 +238,11 @@ with empty strings removed."
   (let* ((map (if require-match
                   crm-local-must-match-map
                 crm-local-completion-map))
+         (map (if minibuffer-visible-completions
+                  (make-composed-keymap
+                   (list minibuffer-visible-completions-map
+                         map))
+                map))
          input)
     (minibuffer-with-setup-hook
         (lambda ()