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

[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)



reply via email to

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