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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 2b671ec 15/31: Move inhibit-redisplay higher


From: Dmitry Gutov
Subject: [elpa] master 2b671ec 15/31: Move inhibit-redisplay higher
Date: Sun, 14 Apr 2019 22:06:17 -0400 (EDT)

branch: master
commit 2b671ecb4644b3b5714448197070ef96c67e243b
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Move inhibit-redisplay higher
    
    Fixes #865
---
 company.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/company.el b/company.el
index 3c13b7b..8b62d51 100644
--- a/company.el
+++ b/company.el
@@ -1236,6 +1236,7 @@ can retrieve meta-data for them."
 
 (defun company--fetch-candidates (prefix)
   (let* ((non-essential (not (company-explicit-action-p)))
+         (inhibit-redisplay t)
          (c (if (or company-selection-changed
                     ;; FIXME: This is not ideal, but we have not managed to 
deal
                     ;; with these situations in a better way yet.
@@ -1244,8 +1245,7 @@ can retrieve meta-data for them."
               (company-call-backend-raw 'candidates prefix))))
     (if (not (eq (car c) :async))
         c
-      (let ((res 'none)
-            (inhibit-redisplay t))
+      (let ((res 'none))
         (funcall
          (cdr c)
          (lambda (candidates)



reply via email to

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