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

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

[elpa] master e5408b5 07/31: Add a clarifying message


From: Dmitry Gutov
Subject: [elpa] master e5408b5 07/31: Add a clarifying message
Date: Sun, 14 Apr 2019 22:06:15 -0400 (EDT)

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

    Add a clarifying message
---
 company.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/company.el b/company.el
index fc06857..7d45473 100644
--- a/company.el
+++ b/company.el
@@ -1586,10 +1586,12 @@ prefix match (same case) will be prioritized."
                   company-backend backend
                   c (company-calculate-candidates company-prefix ignore-case))
             (cond
-             ((and (not company--manual-action)
-                   ;; If `company-manual-begin' was called, the user
-                   ;; really wants something to happen.  Otherwise...
-                   (company--unique-match-p c company-prefix ignore-case))
+             ((and (company--unique-match-p c company-prefix ignore-case)
+                   (if company--manual-action
+                       ;; If `company-manual-begin' was called, the user
+                       ;; really wants something to happen.  Otherwise...
+                       (ignore (message "Sole completion"))
+                     t))
               ;; ...abort and run the hooks, e.g. to clear the cache.
               (company-cancel 'unique))
              ((and (null c) company--manual-action)



reply via email to

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