all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#69189: 30.0.50; minibuffer-visible-completions doesn't work in completing-read-multiple
@ 2024-02-15 22:12 Spencer Baugh
  2024-08-07 15:19 ` Spencer Baugh
  0 siblings, 1 reply; 4+ messages in thread
From: Spencer Baugh @ 2024-02-15 22:12 UTC (permalink / raw)
  To: 69189; +Cc: Juri Linkov


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))





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#69189: 30.0.50; minibuffer-visible-completions doesn't work in completing-read-multiple
  2024-02-15 22:12 bug#69189: 30.0.50; minibuffer-visible-completions doesn't work in completing-read-multiple Spencer Baugh
@ 2024-08-07 15:19 ` Spencer Baugh
  2024-08-07 15:29   ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Spencer Baugh @ 2024-08-07 15:19 UTC (permalink / raw)
  To: 69189; +Cc: Eli Zaretskii, Juri Linkov

[-- Attachment #1: Type: text/plain, Size: 134 bytes --]


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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Support-minibuffer-visible-completions-in-completing.patch --]
[-- Type: text/x-patch, Size: 1229 bytes --]

From 6688344ce5ffb0738751d83a4a8acc4068b453e5 Mon Sep 17 00:00:00 2001
From: Spencer Baugh <sbaugh@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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#69189: 30.0.50; minibuffer-visible-completions doesn't work in completing-read-multiple
  2024-08-07 15:19 ` Spencer Baugh
@ 2024-08-07 15:29   ` Eli Zaretskii
  2024-08-07 16:53     ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-08-07 15:29 UTC (permalink / raw)
  To: Spencer Baugh; +Cc: 69189, juri

> From: Spencer Baugh <sbaugh@janestreet.com>
> Cc: Juri Linkov <juri@linkov.net>, Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#69189: 30.0.50; minibuffer-visible-completions doesn't work in completing-read-multiple
  2024-08-07 15:29   ` Eli Zaretskii
@ 2024-08-07 16:53     ` Juri Linkov
  0 siblings, 0 replies; 4+ messages in thread
From: Juri Linkov @ 2024-08-07 16:53 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Spencer Baugh, 69189

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-07 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-15 22:12 bug#69189: 30.0.50; minibuffer-visible-completions doesn't work in completing-read-multiple Spencer Baugh
2024-08-07 15:19 ` Spencer Baugh
2024-08-07 15:29   ` Eli Zaretskii
2024-08-07 16:53     ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.