Closed
Description
Hi Bozhidar!
Cider adds a custom cider completion style to the completion-styles-alist
. However the entry that is being added does not follow the required specification of completion-styles. This issue has been found by @manuel-uberti (see minad/corfu#8 for the original issue). I wonder how cider gets away with the current implementation. Does the default completion-at-point
function work with Cider?
Daniel
(defun cider-company-unfiltered-candidates (string &rest _)
"Return CIDER completion candidates for STRING as is, unfiltered."
(cider-complete string))
(add-to-list 'completion-styles-alist
'(cider
cider-company-unfiltered-candidates
cider-company-unfiltered-candidates
"CIDER backend-driven completion style."))
- The first function should follow the calling convention of
completion-try-completion
, it should return t, nil or a pair (newstr.newpoint) - The second function should follow
completion-all-completions
(I think it follows the spec, but you are not returning a base size in the last cdr which is okay I guess?)