Subject: bug#77253: 30.1.50; Support RET choosing the selected completion without rebinding arrow keys, [PATCH] Make RET in minibuffer choose selected completion

From: Eli Zaretskii <[email-masked]>
Date: Tue, 22 Jul 2025 15:11:01 +0300

> Cc: [email-masked], [email-masked]
> Date: Mon, 21 Jul 2025 12:26:32 -0400
> From:  Spencer Baugh via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> @@ -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.

In any case, this warrants a NEWS entry.

Thanks.