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

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

[elpa] master fe275d6 63/78: Tiny hack for better latency


From: Dmitry Gutov
Subject: [elpa] master fe275d6 63/78: Tiny hack for better latency
Date: Sun, 18 Feb 2018 07:40:27 -0500 (EST)

branch: master
commit fe275d692b12987ada488d16bf0e19c0ec582c11
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Tiny hack for better latency
    
    At least on paper, it's hard to tell visually
---
 company.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/company.el b/company.el
index dc75183..42e5037 100644
--- a/company.el
+++ b/company.el
@@ -1228,10 +1228,11 @@ can retrieve meta-data for them."
         (funcall
          (cdr c)
          (lambda (candidates)
+           (when (eq res 'none)
+             (push 'company-dummy-event unread-command-events))
            (setq res candidates)))
         (while (and (eq res 'none)
-                    (not (input-pending-p t)))
-          (sit-for company-async-wait t))
+                    (sit-for 0.5)))
         (and (consp res) res)))))
 
 (defun company--preprocess-candidates (candidates)



reply via email to

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