[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company 7d65894: Make sure that when the timer runs the
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company 7d65894: Make sure that when the timer runs the completion is still in progress |
Date: |
Tue, 15 Jun 2021 21:57:06 -0400 (EDT) |
branch: externals/company
commit 7d6589411366f7ddedcbee63dc74ec396bbcaf4a
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Make sure that when the timer runs the completion is still in progress
Looks like an old bug, but the fix is inspired by #1116.
---
company.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/company.el b/company.el
index 73748b0..ba8233f 100644
--- a/company.el
+++ b/company.el
@@ -3400,6 +3400,10 @@ Returns a negative number if the tooltip should be
displayed above point."
(company--show-inline-p))
(company-pseudo-tooltip-frontend command)))
+(defun company-pseudo-tooltip--ujofwd-on-timer (command)
+ (when company-candidates
+ (company-pseudo-tooltip-unless-just-one-frontend-with-delay command)))
+
(defun company-pseudo-tooltip-unless-just-one-frontend-with-delay (command)
"`compandy-pseudo-tooltip-frontend', but shown after a delay.
Delay is determined by `company-tooltip-idle-delay'."
@@ -3419,7 +3423,7 @@ Delay is determined by `company-tooltip-idle-delay'."
(company-call-frontends 'post-command))
(setq company-tooltip-timer
(run-with-timer company-tooltip-idle-delay nil
-
'company-pseudo-tooltip-unless-just-one-frontend-with-delay
+ 'company-pseudo-tooltip--ujofwd-on-timer
'post-command))))
(unhide
(when (overlayp company-pseudo-tooltip-overlay)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/company 7d65894: Make sure that when the timer runs the completion is still in progress,
ELPA Syncer <=