emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Navigating completions from minibuffer


From: Juri Linkov
Subject: Re: Navigating completions from minibuffer
Date: Sat, 25 Nov 2023 19:46:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

> minibuffer-choose-completion-or-exit submits the selected completion
> candidate, if any, ignoring the contents of the minibuffer.  But a
> user might select a completion candidate and then want to type
> something else in the minibuffer and submit what they typed.

Thanks, everything works nicely now except the special case
of completion-show-help=nil and completions-header-format=nil.

Initially the first completion is deselected, and <down> selects it.
But when the first key typed is M-<down> the second completion
is selected instead of the first because M-<down> moves to the
second column when point is between the first and second completions.

A possible workaround would be to check the special property
'first-completion'.  But then when the logic uses text properties,
why not to use more text properties that indicate that a candidate
is deselected (and remove highlighting in this case) instead of
moving point somewhere outside of the candidate?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]