emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu 9ffdbae: corfu-auto: Use run-at-time instead of r


From: ELPA Syncer
Subject: [elpa] externals/corfu 9ffdbae: corfu-auto: Use run-at-time instead of run-with-idle-timer (Fix #92)
Date: Fri, 26 Nov 2021 21:57:13 -0500 (EST)

branch: externals/corfu
commit 9ffdbae0da511e6c951c92baed178f0e6b17c68e
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    corfu-auto: Use run-at-time instead of run-with-idle-timer (Fix #92)
    
    run-with-idle-timer does not work if flyspell-mode is enabled.
---
 corfu.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/corfu.el b/corfu.el
index d302ee6..daf54b1 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1126,9 +1126,11 @@ there hasn't been any input, then quit."
   (when (and (not completion-in-region-mode)
              (corfu--match-symbol-p corfu-auto-commands this-command)
              (display-graphic-p))
-    (setq corfu--auto-timer (run-with-idle-timer corfu-auto-delay nil
-                                                 #'corfu--auto-complete
-                                                 (current-buffer)))))
+    ;; NOTE: Do not use idle timer since this leads to unacceptable slowdowns,
+    ;; in particular if flyspell-mode is enabled.
+    (setq corfu--auto-timer (run-at-time corfu-auto-delay nil
+                                         #'corfu--auto-complete
+                                         (current-buffer)))))
 
 ;;;###autoload
 (define-minor-mode corfu-mode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]