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

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

[elpa] master b696b39 10/31: Don't run company-completed-started-hook un


From: Dmitry Gutov
Subject: [elpa] master b696b39 10/31: Don't run company-completed-started-hook unnecessarily
Date: Sun, 14 Apr 2019 22:06:16 -0400 (EDT)

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

    Don't run company-completed-started-hook unnecessarily
    
    Fixes #853
---
 company.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/company.el b/company.el
index 7d45473..7b2dd5e 100644
--- a/company.el
+++ b/company.el
@@ -1594,8 +1594,9 @@ prefix match (same case) will be prioritized."
                      t))
               ;; ...abort and run the hooks, e.g. to clear the cache.
               (company-cancel 'unique))
-             ((and (null c) company--manual-action)
-              (message "No completion found"))
+             ((null c)
+              (when company--manual-action
+                (message "No completion found")))
              (t ;; We got completions!
               (when company--manual-action
                 (setq company--manual-prefix prefix))



reply via email to

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