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

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

[elpa] master 9c99c7c 60/66: company-search-abort: Move predicate reset


From: Dmitry Gutov
Subject: [elpa] master 9c99c7c 60/66: company-search-abort: Move predicate reset to the mode function
Date: Tue, 13 Jan 2015 02:45:08 +0000

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

    company-search-abort: Move predicate reset to the mode function
---
 company.el |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/company.el b/company.el
index e4cfcdd..cac3ca2 100644
--- a/company.el
+++ b/company.el
@@ -1656,9 +1656,8 @@ from the rest of the back-ends in the group, if any, will 
be left at the end."
   "Abort searching the completion candidates."
   (interactive)
   (company--search-assert-enabled)
-  (company--search-update-predicate "")
-  (company-set-selection company--search-old-selection t)
-  (company-search-mode 0))
+  (company-search-mode 0)
+  (company-set-selection company--search-old-selection t))
 
 (defun company-search-other-char ()
   (interactive)
@@ -1729,6 +1728,9 @@ Don't start this directly, use 
`company-search-candidates' or
     (kill-local-variable 'company-search-lighter)
     (kill-local-variable 'company-search-filtering)
     (kill-local-variable 'company--search-old-selection)
+    (when company-backend
+      (company--search-update-predicate "")
+      (company-call-frontends 'update))
     (company-enable-overriding-keymap company-active-map)))
 
 (defun company--search-assert-enabled ()



reply via email to

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