James
James
The repro steps here don't repro anymore for me but I trust @mookid 's judgement in #1857.
> Since the completion style already appends its own display-sort-function to metadata, I think that should result in (company-call-backend 'sorted) returning non-nil in company--preprocess-candidates, and so in the additional sort...
> identity is still a sorting function - it should make (company-capf 'sorted) return non-nil as well. Unless it's in a grouped backend, I suppose. Maybe it's the grouped backends...
Findings: ``` (let ((company-backend 'company-dabbrev-code)) (company-call-backend 'sorted)) nil (let ((company-backend 'company-yasnippet)) (company-call-backend 'sorted)) nil (let ((company-backend 'company-capf)) (company-call-backend 'sorted)) t (let ((company-backend '(company-capf 'company-yasnippet))) (company-call-backend 'sorted)) nil (let ((company-backend '(company-capf...
> But if it's only different for a grouped backend, that would make sense (it has to combine completions from different backends, after all). Yeah, that makes sense. In a...
> I suppose the sorting function can be a defcustom, like in Corfu. > Also see https://github.com/company-mode/company-mode/issues/1290#issuecomment-1767439911 Yeah, a defcustom would work great. > Which completion lists do you work...