[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: Smarter M-x that filters on major-mode
From: |
Stefan Monnier |
Subject: |
Re: [External] : Re: Smarter M-x that filters on major-mode |
Date: |
Fri, 12 Feb 2021 22:18:10 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> Perhaps you're using some completion framework
>> that starts displaying candidates without waiting
>> for any input to match?
> Yes. It is equivalent to M-x <TAB> with the default completion system.
> But even if you wait until you type the first character, the filtering
> could cause a perceptible lag.
That is a concern, indeed, but there are many ways to attack the
problem:
- Arrange for the predicates to be "translucid", so you can test them by
groups that share the same predicate in a way that's a lot more
efficient (this will strongly depend on details). I hope we don't
have to go there.
- Delay the predicate filtering to the last stage and filter lazily, so
you can stop as soon as you have found enough completions to fill the
part displayed on screen.
- ...
In any case, this is all very hypothetical for now.
What we need is experience (and there is already some of that
experience, collected from the `smex` experiment).
Stefan
- Re: Smarter M-x that filters on major-mode, (continued)
- Re: Smarter M-x that filters on major-mode, Stefan Monnier, 2021/02/12
- Re: Smarter M-x that filters on major-mode, jao, 2021/02/12
- Re: Smarter M-x that filters on major-mode, Dmitry Gutov, 2021/02/12
- Re: Smarter M-x that filters on major-mode, Stefan Monnier, 2021/02/12
- Re: Smarter M-x that filters on major-mode, Óscar Fuentes, 2021/02/12
- RE: [External] : Re: Smarter M-x that filters on major-mode, Drew Adams, 2021/02/12
- Re: [External] : Re: Smarter M-x that filters on major-mode, Óscar Fuentes, 2021/02/12
- RE: [External] : Re: Smarter M-x that filters on major-mode, Drew Adams, 2021/02/12
- Re: [External] : Re: Smarter M-x that filters on major-mode,
Stefan Monnier <=
- Re: Smarter M-x that filters on major-mode, Lars Ingebrigtsen, 2021/02/13
- Re: Smarter M-x that filters on major-mode, Lars Ingebrigtsen, 2021/02/13
- Re: Smarter M-x that filters on major-mode, Lars Ingebrigtsen, 2021/02/13
- RE: [External] : Re: Smarter M-x that filters on major-mode, Drew Adams, 2021/02/13
- Re: [External] : Re: Smarter M-x that filters on major-mode, Stefan Monnier, 2021/02/13
- RE: [External] : Re: Smarter M-x that filters on major-mode, Drew Adams, 2021/02/14
- Re: [External] : Re: Smarter M-x that filters on major-mode, Stefan Monnier, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Lars Ingebrigtsen, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Basil L. Contovounesios, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Lars Ingebrigtsen, 2021/02/14