[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 ()
- [elpa] master 0a172c5 47/66: company-search-map: Support keypad numbers, (continued)
- [elpa] master 0a172c5 47/66: company-search-map: Support keypad numbers, Dmitry Gutov, 2015/01/12
- [elpa] master ff9bafc 41/66: Don't idle-begin when company-candidates is non-nil, Dmitry Gutov, 2015/01/12
- [elpa] master 9335f7b 48/66: company-search-delete-char: New command, Dmitry Gutov, 2015/01/12
- [elpa] master 048a9c4 50/66: company-search-old-map: Remove, unused, Dmitry Gutov, 2015/01/12
- [elpa] master a850cdb 51/66: Privatize some search functions (and a var), Dmitry Gutov, 2015/01/12
- [elpa] master 7b312dd 52/66: Introduce `company-search-toggle-filtering', Dmitry Gutov, 2015/01/12
- [elpa] master 0d2757c 56/66: company-search-map: Add M-n and M-p bindings, Dmitry Gutov, 2015/01/12
- [elpa] master f5942e9 55/66: company-fill-propertize: Don't highlight match beg till common part, Dmitry Gutov, 2015/01/12
- [elpa] master aa7c1ca 57/66: Simplify NEWS entry, Dmitry Gutov, 2015/01/12
- [elpa] master eb1f0db 58/66: Fixup a test, Dmitry Gutov, 2015/01/12
- [elpa] master 9c99c7c 60/66: company-search-abort: Move predicate reset to the mode function,
Dmitry Gutov <=
- [elpa] master 31d352f 53/66: Update NEWS.md, Dmitry Gutov, 2015/01/12
- [elpa] master 559b4f2 49/66: Don't repeat search with empty string, Dmitry Gutov, 2015/01/12
- [elpa] master 388545b 54/66: Add company-complete-common-or-cycle, Dmitry Gutov, 2015/01/12
- [elpa] master 160ab01 63/66: Split company--process-candidates into -pre and -post, Dmitry Gutov, 2015/01/12
- [elpa] master 8f09f52 61/66: Replace `cl-plusp' usages with `string=', Dmitry Gutov, 2015/01/12
- [elpa] master 5b0f1c8 62/66: company-search-delete-char: Use `ding', Dmitry Gutov, 2015/01/12
- [elpa] master 5ebcae8 64/66: Improve duplicates removal, Dmitry Gutov, 2015/01/12
- [elpa] master 770d0d8 59/66: Work around http://debbugs.gnu.org/19553, Dmitry Gutov, 2015/01/12
- [elpa] master eb0d8d9 65/66: Release 0.8.8, Dmitry Gutov, 2015/01/12
- [elpa] master a95c2ce 42/66: Reorganize tests layout, Dmitry Gutov, 2015/01/12