[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new-flex-completion-style
From: |
João Távora |
Subject: |
Re: new-flex-completion-style |
Date: |
Mon, 11 Feb 2019 23:11:27 +0000 |
On Mon, Feb 11, 2019 at 11:02 PM Dmitry Gutov <address@hidden> wrote:
>
> On 12.02.2019 01:16, João Távora wrote:
> > And the second commit should encourage UI devs to start taking the
> > completion-style-sort-order hint into account. If Dmitry does that in
> > company-capf, we get decent flex completion for little cost.
>
> Note that if you adopt the approach I suggested (leave sorting to the
> display-sort-function), it will work with company-capf automatically.
>
> And this can work in two ways: either the completion style adds text
> properties and the sort function looks it up, or the completion style
> (?) or the completion table does the sorting right away, and the
> display-sort-function is #'identity.
Apparently there is something I am still missing about
display-sort-function. I admit to not have looked very hard at it. This
is probably why I didn't understand your suggestion.
Why don't we do this: I add the two (presumably) unproblematic commits
(the new flex style + propertize completions with a numeric property), you
show me a patch where display-sort-function is plugged into the style,
supposing it is not very hard to do. Deal?
João
--
João Távora
- new-flex-completion-style (was: [Emacs-diffs] scratch/ 2c75775 2/2: Score, sort and annotate flex-style completions according to match tightness), Stefan Monnier, 2019/02/11
- Re: new-flex-completion-style, João Távora, 2019/02/11
- Re: new-flex-completion-style, Óscar Fuentes, 2019/02/11
- Re: new-flex-completion-style, João Távora, 2019/02/12
- Re: new-flex-completion-style, Óscar Fuentes, 2019/02/12
- Re: new-flex-completion-style, João Távora, 2019/02/13
- Re: new-flex-completion-style, Óscar Fuentes, 2019/02/13
- RE: new-flex-completion-style, Drew Adams, 2019/02/13
- Re: new-flex-completion-style, Stefan Monnier, 2019/02/13
- RE: new-flex-completion-style, Drew Adams, 2019/02/13
- Re: new-flex-completion-style, Óscar Fuentes, 2019/02/13