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

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

[elpa] externals/cape 1d0d3abbd1 102/146: Use namespaced symbol


From: ELPA Syncer
Subject: [elpa] externals/cape 1d0d3abbd1 102/146: Use namespaced symbol
Date: Sun, 9 Jan 2022 20:57:46 -0500 (EST)

branch: externals/cape
commit 1d0d3abbd1035e46e3181d24ff7f895eec9feda6
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Use namespaced symbol
---
 cape.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cape.el b/cape.el
index c07cd7e1ed..68d92bc8fb 100644
--- a/cape.el
+++ b/cape.el
@@ -741,13 +741,13 @@ If INTERACTIVE is nil the function acts like a capf."
   (let ((old-toi throw-on-input)
         (throw-on-input nil))
     (pcase (apply backend args)
-      (`(:async . ,fetcher)
-       (let ((res 'trash)
+      (`(:async . ,future)
+       (let ((res 'cape--waiting)
              (start (time-to-seconds)))
-         (funcall fetcher (lambda (arg) (setq res arg)))
+         (funcall future (lambda (arg) (setq res arg)))
          ;; Force synchronization. The synchronization is interruptible!
          (let ((throw-on-input old-toi))
-           (while (eq res 'trash)
+           (while (eq res 'cape--waiting)
              (sleep-for cape-company-async-wait)
              (when (> (- (time-to-seconds) start) cape-company-async-timeout)
                (error "Cape company backend async timeout"))))



reply via email to

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