emacs-devel
[Top][All Lists]
Advanced

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

Re: [ELPA] New package: vertico


From: Daniel Mendler
Subject: Re: [ELPA] New package: vertico
Date: Sat, 10 Apr 2021 16:07:56 +0200

On 4/10/21 3:34 PM, Stefan Monnier wrote:
Maybe a way to handle it "right" is for vertico to register an
`after-change-function` so as to detect also when the buffer's content is
modified outside of the normal commands (i.e. from a timer or process
filter).  It'd probably be a bit messy, tho: it wouldn't want to refresh
the completion list right away, but there's no "obvious" later hook to
use (like `post-command-hook`) so it would need to detect when there's
not going to be a subsequent post-command-hook (i.e. when we're in
a timer or similar) and then probably fire its own timer to update the
completion list when the current processing is done.

Or maybe it should use `after-change-function` to detect changes and
`pre-redisplay-functions` to update the list of completion.

Yes, there are other hooks that could be used. I like to keep it simple as is and introduce nothing messy. I follow the design taken by Icomplete which works well.

Daniel



reply via email to

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