summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cape.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/cape.el b/cape.el
index dbd3522..9cba1e1 100644
--- a/cape.el
+++ b/cape.el
@@ -895,9 +895,11 @@ If INTERACTIVE is nil the function acts like a capf."
(> (- (time-to-seconds) start) cape-company-timeout))
(error "Cape company backend async timeout"))
(sit-for 0.1 'noredisplay)))
- ;; Remove cape--done introduced by future callback
- ;; XXX NOTE: For some reason Emacs sometimes converts
- ;; cape--done to (t . cape--done).
+ ;; Remove cape--done introduced by future callback.
+ ;; NOTE: `sit-for' converts cape--done to (t . cape--done).
+ ;; It seems that `sit-for' does not use a robust method to
+ ;; reinject inputs, maybe the implementation will change in
+ ;; the future.
(setq unread-command-events
(delq 'cape--done
(delete '(t . cape--done)