bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61532: 30.0.50; [PATCH]: Make completions without sortText fall to b


From: João Távora
Subject: bug#61532: 30.0.50; [PATCH]: Make completions without sortText fall to back of the list
Date: Tue, 21 Feb 2023 12:47:55 +0000

On Tue, Feb 21, 2023 at 8:24 AM Augusto Stoffel <arstoffel@gmail.com> wrote:
>
> On Sun, 19 Feb 2023 at 18:19, João Távora wrote:
>
> > The 'flex' completion style isn't really doing (or at shouldn't be doing)
> > what it does normally. Its purpose in Eglot is only to allow for flex-style
> > fontification of the pattern to happen. Nothing more, and that includes
> > no sorting.
>
> What happens with the “glorified TAGS” kind of servers that do no
> filtering on their side?  Apparently those exists, according to the
> Github discussion I linked in the other message.

I think these servers do some kind of filtering.  As "glorified TAGS"
servers they might not be aware of the local context but I presume
they would still _not_ provide the 'fooey' completion if point is
after the characters 'bar'. As to whether they also provide 'bias-rate'
in that case (a so-called flex-match) or just 'barbaz' (a prefix match),
it's completely up to them.

Regardless, there is nothing flex can or should do here, except --
as I mentioned -- guessing how the pattern should be painted on
the completions.

João





reply via email to

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