[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b22df34 60/78: Use inhibit-redisplay
From: |
Dmitry Gutov |
Subject: |
[elpa] master b22df34 60/78: Use inhibit-redisplay |
Date: |
Sun, 18 Feb 2018 07:40:26 -0500 (EST) |
branch: master
commit b22df348da8cfce6734be078e713286e22889409
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Use inhibit-redisplay
#510 and #654
---
company.el | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/company.el b/company.el
index 173266d..dc75183 100644
--- a/company.el
+++ b/company.el
@@ -1223,19 +1223,15 @@ can retrieve meta-data for them."
(company-call-backend-raw 'candidates prefix))))
(if (not (eq (car c) :async))
c
- (let ((res 'none))
+ (let ((res 'none)
+ (inhibit-redisplay t))
(funcall
(cdr c)
(lambda (candidates)
(setq res candidates)))
(while (and (eq res 'none)
(not (input-pending-p t)))
- ;; FIXME: This still leads to flickers.
- ;; Apparently sit-for triggers redisplay anyway.
- (sleep-for company-async-wait))
- ;; (if (listp res)
- ;; (message "res len is %s" (length res))
- ;; (message "none"))
+ (sit-for company-async-wait t))
(and (consp res) res)))))
(defun company--preprocess-candidates (candidates)
- [elpa] master cb2ae50 38/78: Don't restart semantics after ::, (continued)
- [elpa] master cb2ae50 38/78: Don't restart semantics after ::, Dmitry Gutov, 2018/02/18
- [elpa] master 75b4daa 37/78: Merge pull request #737 from iquiw/container-based-ci, Dmitry Gutov, 2018/02/18
- [elpa] master 0f70fee 47/78: Add keywords for swift-mode, Dmitry Gutov, 2018/02/18
- [elpa] master 10807eb 48/78: Merge pull request #750 from jojojames/master, Dmitry Gutov, 2018/02/18
- [elpa] master 556fe45 45/78: Specify type, Dmitry Gutov, 2018/02/18
- [elpa] master e97d26f 51/78: Specify :type for company-dabbrev -ignore-case and -downcase, Dmitry Gutov, 2018/02/18
- [elpa] master d789f26 54/78: Merge pull request #754 from jabranham/fix-defcustom, Dmitry Gutov, 2018/02/18
- [elpa] master 3959af9 52/78: Specify :type for company-semantic-begin-after-member-access, Dmitry Gutov, 2018/02/18
- [elpa] master 7c5408c 57/78: company-clang--start-process: Kill the existing process, if any, Dmitry Gutov, 2018/02/18
- [elpa] master 0efc9f3 58/78: Reindent, Dmitry Gutov, 2018/02/18
- [elpa] master b22df34 60/78: Use inhibit-redisplay,
Dmitry Gutov <=
- [elpa] master 307b620 59/78: Simplify how async backends are called (WIP), Dmitry Gutov, 2018/02/18
- [elpa] master 82d41b7 70/78: Avoid an extra redisplay call, Dmitry Gutov, 2018/02/18
- [elpa] master 4004c7f 42/78: Merge pull request #748 from nikital/tng-dont-require-match, Dmitry Gutov, 2018/02/18
- [elpa] master 6ddeae2 43/78: Rework Clang version handling, Dmitry Gutov, 2018/02/18
- [elpa] master 0bd111d 49/78: Add keywords for kotlin-mode, Dmitry Gutov, 2018/02/18
- [elpa] master f3910a2 71/78: Add a comment justifying the duplication [ci skip], Dmitry Gutov, 2018/02/18
- [elpa] master b079bd2 75/78: Revert "Break idle re-starting loop", Dmitry Gutov, 2018/02/18
- [elpa] master 7cc0901 77/78: Release 0.9.5, Dmitry Gutov, 2018/02/18
- [elpa] master d033112 28/78: Merge pull request #720 from aaronjensen/abort-dabbrev-on-input, Dmitry Gutov, 2018/02/18
- [elpa] master 3b5415a 41/78: company-tng: default config: Disable company-require-match, Dmitry Gutov, 2018/02/18