GNU bug report logs - #77253
30.1.50; Support RET choosing the selected completion without rebinding arrow keys

Previous Next

Package: emacs;

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

Date: Tue, 25 Mar 2025 15:12:02 UTC

Severity: normal

Found in version 30.1.50

Full log


Message #50 received at 77253 <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>, 77253 <at> debbugs.gnu.org,
 sbaugh <at> catern.com
Subject: Re: bug#77253: 30.1.50; Support RET choosing the selected
 completion without rebinding arrow keys, [PATCH] Make RET in minibuffer
 choose selected completion
Date: Thu, 24 Jul 2025 20:10:41 +0300
>> @@ -3235,6 +3241,7 @@ minibuffer-local-completion-map
>>    ;; another binding for it.
>>    ;; "M-TAB"  #'minibuffer-force-complete
>>    "SPC"       #'minibuffer-complete-word
>> +  "RET"       #'minibuffer-choose-completion-just-exit
>>    "?"         #'minibuffer-completion-help
>>    "<prior>"   #'switch-to-completions
>>    "M-v"       #'switch-to-completions
>> @@ -3246,7 +3253,7 @@ minibuffer-local-completion-map
>>  (defvar-keymap minibuffer-local-must-match-map
>>    :doc "Local keymap for minibuffer input with completion, for exact match."
>>    :parent minibuffer-local-completion-map
>> -  "RET" #'minibuffer-complete-and-exit
>> +  "RET" #'minibuffer-choose-completion-or-exit
>>    "C-j" #'minibuffer-complete-and-exit)
>
> Can we please not to change commands bound to keys?  That will make
> the changes much more backward-compatible.

First we discussed adding a new option like 'minibuffer-visible-completions'
that affects only RET, not arrow keys.  But now we arrived at a patch that
rebinds the default keybindings.  So I'm not sure how this would affect
the current default behavior.  IIUC, previously after selecting a candidate
with M-down the user needed to type M-RET, and after applying the patch
just RET will be sufficient?  But it was already possible to use RET
with 'minibuffer-completion-auto-choose' equal to t when M-down inserts
the completion candidate to the minibuffer.




This bug report was last modified 23 days ago.

Previous Next


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