emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs should provide more modern item completion out of the box


From: Stefan Monnier
Subject: Re: Emacs should provide more modern item completion out of the box
Date: Wed, 29 Jan 2020 18:57:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> (and I'm not sure why you bind `completion-styles` since it will only
>> take effect during the display but not when the user finally hits RET).
>
> This part I don't understand - it seems its main point is to take effect
> during the display.

But with the code you proposed, the display list won't be in-sync with
the completion candidates used for RET, so you can get for example the
display to say that `rename-uniquely` is the only matching candidate and
then RET to reject saying there's "no match".

> But anyway completion styles should be customized separately,

Exactly.

>> Also, you probably want to run this within a `while-no-input` of some kind.
> 'while-no-input' feels still too laggy when tried with this:
> (defun minibuffer-quick-update ()
>   (when (and minibuffer-completion-table
>              (>= (length (minibuffer-contents)) minibuffer-quick-min))
>     (let ((non-essential t))
>       (while-no-input
>         (minibuffer-completion-help)))))
>
> Maybe better to use run-with-idle-timer that could be customized with
> a number of seconds to delay.

Probably,


        Stefan




reply via email to

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