[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master aefac09 05/78: Force the prefix call to synchronous everyw
From: |
Dmitry Gutov |
Subject: |
[elpa] master aefac09 05/78: Force the prefix call to synchronous everywhere |
Date: |
Sun, 18 Feb 2018 07:40:10 -0500 (EST) |
branch: master
commit aefac092d41bd3b10a103822bb443cb1d4098a6f
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Force the prefix call to synchronous everywhere
#700
---
company.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/company.el b/company.el
index 7cf0da4..cc2c82c 100644
--- a/company.el
+++ b/company.el
@@ -959,7 +959,8 @@ matches IDLE-BEGIN-AFTER-RE, return it wrapped in a cons."
(defun company--multi-backend-adapter-candidates (backends prefix separate)
(let ((pairs (cl-loop for backend in backends
when (equal (company--prefix-str
- (funcall backend 'prefix))
+ (let ((company-backend backend))
+ (company-call-backend 'prefix)))
prefix)
collect (cons (funcall backend 'candidates prefix)
(company--multi-candidates-mapper
@@ -1534,7 +1535,8 @@ prefix match (same case) will be prioritized."
(if (or (symbolp backend)
(functionp backend))
(when (company--maybe-init-backend backend)
- (funcall backend 'prefix))
+ (let ((company-backend backend))
+ (company-call-backend 'prefix)))
(company--multi-backend-adapter backend 'prefix)))
(when prefix
(when (company--good-prefix-p prefix)
- [elpa] master updated (32f6323 -> e65aa3f), Dmitry Gutov, 2018/02/18
- [elpa] master c280e64 01/78: company-safe-substring: Honor the current buffer-invisibility-spec, Dmitry Gutov, 2018/02/18
- [elpa] master ff295e8 02/78: add golang keywords, Dmitry Gutov, 2018/02/18
- [elpa] master ab2937a 04/78: Fix the warnings, Dmitry Gutov, 2018/02/18
- [elpa] master aefac09 05/78: Force the prefix call to synchronous everywhere,
Dmitry Gutov <=
- [elpa] master 191fc01 03/78: Merge pull request #694 from ycz0926/master, Dmitry Gutov, 2018/02/18
- [elpa] master 5df6abf 12/78: company-tng: Usage instructions, Dmitry Gutov, 2018/02/18
- [elpa] master ec1e879 10/78: company-tng: Don't highlight tooltip when unselected, Dmitry Gutov, 2018/02/18
- [elpa] master 91fc865 07/78: Unread whole command instead of last input, Dmitry Gutov, 2018/02/18
- [elpa] master c0098af 06/78: Introduce company-tooltip-maximum-width, Dmitry Gutov, 2018/02/18
- [elpa] master fe20376 11/78: company-tng: Function to give sensible default configuration, Dmitry Gutov, 2018/02/18
- [elpa] master e27f0f4 13/78: NEWS: Entry for company-tng, Dmitry Gutov, 2018/02/18
- [elpa] master 0295c8f 20/78: And more, Dmitry Gutov, 2018/02/18
- [elpa] master b07eaf9 17/78: Move the entry up, Dmitry Gutov, 2018/02/18
- [elpa] master 74d85d1 09/78: company-tng: Advice company-select-next to allow unselected state, Dmitry Gutov, 2018/02/18