GNU bug report logs - #69189
30.0.50; minibuffer-visible-completions doesn't work in completing-read-multiple

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Sun, 18 Feb 2024 18:22:03 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 30.0.60

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 69189 in the body.
You can then email your comments to 69189 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#69189; Package emacs. (Sun, 18 Feb 2024 18:22:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Spencer Baugh <sbaugh <at> janestreet.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 18 Feb 2024 18:22:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Spencer Baugh <sbaugh <at> janestreet.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Juri Linkov <juri <at> linkov.net>
Subject: 30.0.50; minibuffer-visible-completions doesn't work in
 completing-read-multiple
Date: Thu, 15 Feb 2024 17:12:33 -0500
1. emacs -Q
2. M-: (completing-read-multiple ":" '("foo" "bar"))
3. M-?
4. <left>
5. Note that completions are not selected



In GNU Emacs 30.0.50 (build 37, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.15.12, Xaw scroll bars) of 2024-02-13 built on
 igm-qws-u22796a
Repository revision: a24a2b1ceb12f11c9d345190fbf554f27c4ec186
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Rocky Linux 8.9 (Green Obsidian)

Configured using:
 'configure -C --with-x-toolkit=lucid 'CFLAGS=-O0 -g3'
 --without-native-compilation --without-gif'

Configured features:
CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM
XINPUT2 XPM LUCID ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr cl-print byte-opt gv bytecomp byte-compile
help-fns radix-tree help-mode dabbrev emacsbug message mailcap
yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache
epa derived epg rfc6068 epg-config gnus-util text-property-search
time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip
cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting cairo
x-toolkit xinput2 x multi-tty move-toolbar make-network-process emacs)

Memory information:
((conses 16 74902 13022) (symbols 48 10446 0) (strings 32 25646 1603)
 (string-bytes 1 764028) (vectors 16 11210)
 (vector-slots 8 127427 8311) (floats 8 45 14) (intervals 56 285 0)
 (buffers 976 12))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69189; Package emacs. (Wed, 07 Aug 2024 15:21:01 GMT) Full text and rfc822 format available.

Message #8 received at 69189 <at> debbugs.gnu.org (full text, mbox):

From: Spencer Baugh <sbaugh <at> janestreet.com>
To: 69189 <at> debbugs.gnu.org
Cc: Eli Zaretskii <eliz <at> gnu.org>, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#69189: 30.0.50; minibuffer-visible-completions doesn't work
 in completing-read-multiple
Date: Wed, 07 Aug 2024 11:19:40 -0400
[Message part 1 (text/plain, inline)]
Here's a patch to fix this.

Eli, is this OK for emacs-30?  Since this is fixing a bug in a
customization which is new in Emacs 30.

[0001-Support-minibuffer-visible-completions-in-completing.patch (text/x-patch, inline)]
From 6688344ce5ffb0738751d83a4a8acc4068b453e5 Mon Sep 17 00:00:00 2001
From: Spencer Baugh <sbaugh <at> janestreet.com>
Date: Wed, 7 Aug 2024 11:18:02 -0400
Subject: [PATCH] Support minibuffer-visible-completions in
 completing-read-multiple

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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/emacs-lisp/crm.el b/lisp/emacs-lisp/crm.el
index 253dfc6237a..422a8d52dcf 100644
--- a/lisp/emacs-lisp/crm.el
+++ b/lisp/emacs-lisp/crm.el
@@ -238,6 +238,11 @@ completing-read-multiple
   (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 ()
-- 
2.39.3


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69189; Package emacs. (Wed, 07 Aug 2024 15:32:01 GMT) Full text and rfc822 format available.

Message #11 received at 69189 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: 69189 <at> debbugs.gnu.org, juri <at> linkov.net
Subject: Re: bug#69189: 30.0.50; minibuffer-visible-completions doesn't work
 in completing-read-multiple
Date: Wed, 07 Aug 2024 18:29:02 +0300
> From: Spencer Baugh <sbaugh <at> janestreet.com>
> Cc: Juri Linkov <juri <at> linkov.net>, Eli Zaretskii <eliz <at> gnu.org>
> Date: Wed, 07 Aug 2024 11:19:40 -0400
> 
> Here's a patch to fix this.
> 
> Eli, is this OK for emacs-30?  Since this is fixing a bug in a
> customization which is new in Emacs 30.

OK, provided that Juri agrees with the fix.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69189; Package emacs. (Wed, 07 Aug 2024 16:55:01 GMT) Full text and rfc822 format available.

Message #14 received at 69189 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Spencer Baugh <sbaugh <at> janestreet.com>, 69189 <at> debbugs.gnu.org
Subject: Re: bug#69189: 30.0.50; minibuffer-visible-completions doesn't work
 in completing-read-multiple
Date: Wed, 07 Aug 2024 19:53:20 +0300
close 69189 30.0.60
thanks

>> Here's a patch to fix this.
>> 
>> Eli, is this OK for emacs-30?  Since this is fixing a bug in a
>> customization which is new in Emacs 30.
>
> OK, provided that Juri agrees with the fix.

I confirm this is the right fix since the same is used in
completing-read-default and completion-in-region-mode,
so now pushed to emacs-30.  Thanks Spencer for the patch.




bug marked as fixed in version 30.0.60, send any further explanations to 69189 <at> debbugs.gnu.org and Spencer Baugh <sbaugh <at> janestreet.com> Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Wed, 07 Aug 2024 16:55:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Sep 2024 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 189 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.