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, 11 Nov 2023 20:58:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

>> Probably we have to make RET more smart, so that when more editing
>> was performed in the minibuffer after the completions were displayed,
>> then to use the minibuffer contents with exit-minibuffer,
>> not an obsolete completion candidate that remains selected.
>
> Interesting solution!  So if the last relevant command was changing the
> selected candidate, then RET submits the candidate; if the last relevant
> command was editing the minibuffer, then RET submits the minibuffer
> text.
>
> What about the case where I type some text, switch between some
> completion candidates in *Completions*, then decide I don't want any of
> them and hit RET to submit the minibuffer text?  That's something that
> works today.  Can we support that somehow?

Currently the suggested way to avoid selecting a highlighted candidate
is to close the completions window with C-g, i.e. it adheres
to the principle “what you see is what you get” - when you see
a highlighted candidate then you will get it, otherwise you will get
the minibuffer contents.



reply via email to

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