emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

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