[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package: vertico
From: |
Stefan Monnier |
Subject: |
Re: [ELPA] New package: vertico |
Date: |
Sat, 10 Apr 2021 11:19:03 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> 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.
FWIW, I'm not convinced either that the extra complexity of what
I propose is worth the trouble.
Stefan
- Re: [ELPA] New package: vertico, (continued)
- Re: [ELPA] New package: vertico, Tassilo Horn, 2021/04/10
- Re: [ELPA] New package: vertico, Eli Zaretskii, 2021/04/10
- Re: [ELPA] New package: vertico, Tassilo Horn, 2021/04/10
- Re: [ELPA] New package: vertico, Daniel Mendler, 2021/04/10
- Re: [ELPA] New package: vertico, Tassilo Horn, 2021/04/10
- Re: [ELPA] New package: vertico, Daniel Mendler, 2021/04/10
- Re: [ELPA] New package: vertico, Stefan Monnier, 2021/04/10
- Re: [ELPA] New package: vertico, Daniel Mendler, 2021/04/10
- Re: [ELPA] New package: vertico,
Stefan Monnier <=
- Re: [ELPA] New package: vertico, Tassilo Horn, 2021/04/10
- Re: [ELPA] New package: vertico, Juri Linkov, 2021/04/10