Fix completion symbol name in README

Fix one of the jinx's function not defined warning
master
Adam Kruszewski 2023-07-03 16:24:10 +02:00
parent c088313d92
commit e57860e12a
1 changed files with 5 additions and 2 deletions

View File

@ -50,15 +50,18 @@
(defun cape-jinx-completion-suggest-for-word (word)
"Return suggestions as a list for `WORD'."
(when (not jinx--dicts)
(when (not (fboundp #'jinx--mod-dict))
(when (not (fboundp 'jinx--mod-dict))
(jinx--load-module))
(jinx--load-dicts))
(if (fboundp 'jinx--mod-suggest)
(let* ((result '()))
(dolist (dict jinx--dicts)
(dolist (el (jinx--mod-suggest dict word))
(when (string-prefix-p word el)
(cl-pushnew el result))))
(delete-dups result)))
(delete-dups result))
;; this should never happen, as jinx--load-module will bind jinx--mod-suggest as well.
'()))
;; cape-jinx-completion (based on cape-dict)
(defgroup cape-jinx-completion nil