--- Begin Message ---
Subject: |
23.0.60; completing-read-multiple is wrong with mouse-2 in *Completions* |
Date: |
Sat, 4 Oct 2008 09:12:07 -0700 |
emacs -Q
Evaluate this:
(completing-read-multiple "Choose: " '("Lllll" Dddddd "Rrrrrr"))
Type: `Lll TAB , Ddd TAB ,'
and then choose `Rrrrrr' with `mouse-2' in *Completions*.
The result returned is ("Rrrrrr"), not ("Lllll" Dddddd "Rrrrrr") as it
presumably should be.
It seems like `completing-read-multiple' should use a special
keymap for *Completions*, just like it does with
`crm-local-completion-map' and `crm-local-must-match-map'
for the minibuffer, and in that new keymap, `mouse-2' should
DTRT. IOW, treat `mouse-2' similarly to how TAB is treated.
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-10-03 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
--- End Message ---
--- Begin Message ---
Subject: |
Re: 23.0.60; completing-read-multiple is wrong with mouse-2 in *Completions* |
Date: |
Sun, 15 Mar 2009 20:48:59 -0400 |
> (completing-read-multiple "Choose: " '("Lllll" Dddddd "Rrrrrr"))
>
> Type: `Lll TAB , Ddd TAB ,'
> and then choose `Rrrrrr' with `mouse-2' in *Completions*.
>
> The result returned is ("Rrrrrr"), not ("Lllll" Dddddd "Rrrrrr") as it
> presumably should be.
>
> It seems like `completing-read-multiple' should use a special
> keymap for *Completions*, just like it does with
> `crm-local-completion-map' and `crm-local-must-match-map'
> for the minibuffer, and in that new keymap, `mouse-2' should
> DTRT. IOW, treat `mouse-2' similarly to how TAB is treated.
Fixed, thanks for the report.
Note that the new crm--choose-completion-string function does not exit
the minibuffer, unlike the usual completion string chooser. Instead, it
just completes into the minibuffer. This behavior seems more suitable
for completing-read-multiple.
--- End Message ---