Closed hongyi-zhao closed 1 year ago
I cannot tell what the exact problem is, but it is likely an issue of the backend, which is inefficient and slow to start. In the discussion, Arash noted that Company is equally slow to startup, see https://lists.gnu.org/archive/html/auctex/2023-05/msg00050.html. If I run Corfu in Elisp buffers for example it starts quickly. If Corfu would be slow with fast backends, then it could be a Corfu or child frame problem.
;; Test fast backend
(setq completion-at-point-functions '(elisp-completion-at-point))
corfu-auto t
corfu-auto-delay 0
corfu-auto-prefix 1)
(corfu-mode 1)
I have another possible explanation - at the first start Emacs may have to load additional fonts due to the TeX completion preview in the Corfu popup. I've seen a similar problem with cape-tex
from my Cape package. We cannot do much about this startup overhead. At least it should be gone after first use.
But till now, I still encounter the following problems:
(setq completion-cycle-threshold 3)
@hongyi-zhao
That's an unrelated problem, but again probably not due to Corfu. Cycling works well if you use compliant backends like the aforementioned elisp-completion-at-point
. If package name completion does not work properly, that's again a problem of the backend.
I've noticed that you recently opened multiple bug reports for my Corfu and Vertico packages, which were actually support requests. Please note that I maintain many packages, which already require a lot of attention, such that I have to focus on actual bugs. Your reports lack details and were not directly caused by Corfu. For the future, before opening an issue, please make sure that you first check if the issue is actually an issue of Corfu by testing compliant backends and by testing a minimal recipe starting from emacs -Q. Thanks!
I'm using corfu via use-package as follows:
Though I've set the
:demand t
in the corfu's use-package configuration, but the speed of triggering the candidate list for the first time is still very slow: it takes a second before it's ready to go.Any tips for fixing this problem? See here for the related discussion.
Regards, Zhao