[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new-flex-completion-style
From: |
Stefan Monnier |
Subject: |
Re: new-flex-completion-style |
Date: |
Thu, 14 Feb 2019 23:50:22 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>> I guess one could consider `flx` scoring as just another kind of
>> sorting, but I'm pretty sure that it can give odd results when used
>> with (say) regexp-style completion.
> Depends on the regexp. But sure, you wouldn't
> want to sort based on scoring that privileges
> substring match length for input that is a wild
> regexp.
My point is that flx scoring is usually based on the idea that the
candidate does match using flx matching, whereas that might not be the
case is the matching was done some other way. So the scoring result can
be completely meaningless (or it could even signal an error).
IOW matching and scoring can be intimately linked because the scoring is
based on *how* the candidate matched the input.
Stefan
- RE: new-flex-completion-style, (continued)
- RE: new-flex-completion-style, Drew Adams, 2019/02/14
- Re: new-flex-completion-style, João Távora, 2019/02/14
- RE: new-flex-completion-style, Drew Adams, 2019/02/14
- Re: new-flex-completion-style, João Távora, 2019/02/14
- RE: new-flex-completion-style, Drew Adams, 2019/02/14
- Re: new-flex-completion-style, João Távora, 2019/02/14
- RE: new-flex-completion-style, Drew Adams, 2019/02/14
- Re: new-flex-completion-style, João Távora, 2019/02/14
- Re: new-flex-completion-style, Stefan Monnier, 2019/02/14
- RE: new-flex-completion-style, Drew Adams, 2019/02/14
- Re: new-flex-completion-style,
Stefan Monnier <=
- Re: new-flex-completion-style, Dmitry Gutov, 2019/02/15
- RE: new-flex-completion-style, Drew Adams, 2019/02/15
- Re: new-flex-completion-style, João Távora, 2019/02/18
- Re: new-flex-completion-style, Stefan Monnier, 2019/02/18
- Re: new-flex-completion-style, João Távora, 2019/02/19
- Re: new-flex-completion-style, Stefan Monnier, 2019/02/19
- Re: new-flex-completion-style, João Távora, 2019/02/19
- Re: new-flex-completion-style, Stefan Monnier, 2019/02/19
RE: new-flex-completion-style (was: [Emacs-diffs] scratch/ 2c75775 2/2: Score, sort and annotate flex-style completions according to match tightness), Drew Adams, 2019/02/11