Skip to content

Commit

Permalink
[completion] Use ignore instead of try-completion-function in CIDER c…
Browse files Browse the repository at this point in the history
…ompletion style (#3750)
  • Loading branch information
alexander-yakushev authored Oct 21, 2024
1 parent ced9f25 commit 7b051c4
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions cider-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,6 @@ in the buffer."

;; Fuzzy completion for company-mode

(defun cider-completion-try-completion (string collection pred _)
"Return longest common substring of all completions of STRING in COLLECTION,
also pass PRED to `try-completion'.
This function is only needed to be a correct citizen in
`completion-styles-alist'."
(try-completion string collection pred))

(defun cider-company-unfiltered-candidates (string &rest _)
"Return CIDER completion candidates for STRING as is, unfiltered."
(cider-complete string))
Expand All @@ -276,7 +268,8 @@ This function is only needed to be a correct citizen in
;; which introduced `cider-company-enable-fuzzy-completion')
(add-to-list 'completion-styles-alist
'(cider
cider-completion-try-completion
;; Use `ignore' in place of "try-competion function".
ignore
cider-company-unfiltered-candidates
"CIDER backend-driven completion style."))

Expand Down

0 comments on commit 7b051c4

Please sign in to comment.