branch: master commit 259cf40baa24bd0dcb9df743248154b35f81a74e Author: Dmitry Gutov <dgu...@yandex.ru> Commit: Dmitry Gutov <dgu...@yandex.ru>
Break idle re-starting loop Fixes #760 --- company.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/company.el b/company.el index 915f1bd..4c38b8d 100644 --- a/company.el +++ b/company.el @@ -829,6 +829,7 @@ means that `company-mode' is always turned on except in `message-mode' buffers." (setq this-command last-command)) (global-set-key '[company-dummy-event] 'company-ignore) +(global-set-key '[company-async-event] 'ignore) (defun company-input-noop () (push 'company-dummy-event unread-command-events)) @@ -1238,7 +1239,7 @@ can retrieve meta-data for them." (cdr c) (lambda (candidates) (when (eq res 'none) - (push 'company-dummy-event unread-command-events)) + (push 'company-async-event unread-command-events)) (setq res candidates))) (while (and (eq res 'none) (sit-for 0.5 t)))