[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company 8d2ca28a16 5/5: company-calculate-candidates: M
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company 8d2ca28a16 5/5: company-calculate-candidates: Make sure to cancel the "sneaky" timer |
Date: |
Mon, 24 Jun 2024 21:57:41 -0400 (EDT) |
branch: externals/company
commit 8d2ca28a161f8b912889684412bb1d7fb07d035c
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
company-calculate-candidates: Make sure to cancel the "sneaky" timer
Even when the computation had been interrupted by `throw`.
#1468
---
company.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/company.el b/company.el
index fb564f1d25..7751e2d566 100644
--- a/company.el
+++ b/company.el
@@ -1576,10 +1576,11 @@ update if FORCE-UPDATE."
;; No cache match, call the backend.
(let ((refresh-timer (run-with-timer company-async-redisplay-delay
nil #'company--sneaky-refresh)))
- (setq candidates (company--preprocess-candidates
- (company--fetch-candidates prefix)))
- ;; If the backend is synchronous, no chance for the timer to run.
- (cancel-timer refresh-timer)
+ (unwind-protect
+ (setq candidates (company--preprocess-candidates
+ (company--fetch-candidates prefix)))
+ ;; If the backend is synchronous, no chance for the timer to run.
+ (cancel-timer refresh-timer))
;; Save in cache.
(push (cons prefix candidates) company-candidates-cache)))
;; Only now apply the predicate and transformers.
- [elpa] externals/company updated (035e38b835 -> 8d2ca28a16), ELPA Syncer, 2024/06/24
- [elpa] externals/company a0e685b506 4/5: Expect specifically the value `t`, ELPA Syncer, 2024/06/24
- [elpa] externals/company eeba45b8c8 3/5: Merge pull request #1479 from company-mode/while-no-input-opt-in, ELPA Syncer, 2024/06/24
- [elpa] externals/company 8d2ca28a16 5/5: company-calculate-candidates: Make sure to cancel the "sneaky" timer,
ELPA Syncer <=
- [elpa] externals/company b05e9ea272 1/5: Revert "Remove :company-use-while-no-input, just default to interrupting", ELPA Syncer, 2024/06/24
- [elpa] externals/company 917a40cd57 2/5: Update NEWS entries, ELPA Syncer, 2024/06/24