Subject: bug#60313: 29.0.60; Problems navigating completions from minibuffer with flex completion style

From: Juri Linkov <[email-masked]>
Date: Sun, 25 Dec 2022 19:55:51 +0200

> Selecting completions from the minibuffer with M-<up>/<down> and M-RET
> doesn't always work quite the way I expect when the flex completion
> style is used. For example:
>
> 1. Evaluate: (push 'flex completion-styles)
>
> 2. Type: M-x c++-mode TAB TAB
>    (The *Completions* buffer now shows three alternatives: c++-mode,
>    c++-ts-mode, c-or-c++-mode.)
>
> 3. Type M-<down> to select c++-mode, and then M-RET.
>
> Expected result: c++-mode is enabled in the buffer.
>
> Actual result: An error with the following message is raised:
> ‘c++-modemode’ is not a valid command name

To be able to fix this, we need to install
at least some parts of the patch proposed in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=48356#40
Probably too late for Emacs 29.