Skip to content

Commit 7b051c4

Browse files
[completion] Use ignore instead of try-completion-function in CIDER completion style (#3750)
1 parent ced9f25 commit 7b051c4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

cider-completion.el

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,6 @@ in the buffer."
256256

257257
;; Fuzzy completion for company-mode
258258

259-
(defun cider-completion-try-completion (string collection pred _)
260-
"Return longest common substring of all completions of STRING in COLLECTION,
261-
also pass PRED to `try-completion'.
262-
263-
This function is only needed to be a correct citizen in
264-
`completion-styles-alist'."
265-
(try-completion string collection pred))
266-
267259
(defun cider-company-unfiltered-candidates (string &rest _)
268260
"Return CIDER completion candidates for STRING as is, unfiltered."
269261
(cider-complete string))
@@ -276,7 +268,8 @@ This function is only needed to be a correct citizen in
276268
;; which introduced `cider-company-enable-fuzzy-completion')
277269
(add-to-list 'completion-styles-alist
278270
'(cider
279-
cider-completion-try-completion
271+
;; Use `ignore' in place of "try-competion function".
272+
ignore
280273
cider-company-unfiltered-candidates
281274
"CIDER backend-driven completion style."))
282275

0 commit comments

Comments
 (0)