summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2021-11-28 00:21:56 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2021-11-28 00:22:03 +0100
commit1d0d3abbd1035e46e3181d24ff7f895eec9feda6 (patch)
tree72e09f352eb96d7615b34d3ddc899e1da597281d
parentb612af57548ba7da3b89af9cfff9b3a39da76703 (diff)
Use namespaced symbol
-rw-r--r--cape.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/cape.el b/cape.el
index c07cd7e..68d92bc 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"))))