[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 45/52: Bring back this-command check when company-idle-delay is t
From: |
Dmitry Gutov |
Subject: |
[elpa] 45/52: Bring back this-command check when company-idle-delay is t |
Date: |
Tue, 01 Jul 2014 11:53:32 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit 952a6cdb1b936fca7a746c877baa51591cb99bad
Author: Dmitry Gutov <address@hidden>
Date: Wed Jun 25 08:37:46 2014 +0300
Bring back this-command check when company-idle-delay is t
Reported by @proofit404
---
company.el | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/company.el b/company.el
index a6d6ab9..7066817 100644
--- a/company.el
+++ b/company.el
@@ -1496,11 +1496,14 @@ from the rest of the back-ends in the group, if any,
will be left at the end."
(condition-case err
(progn
(unless (equal (point) company-point)
- (company--perform))
+ (let ((company-idle-delay (and (eq company-idle-delay t)
+ (company--should-begin)
+ t)))
+ (company--perform)))
(if company-candidates
(company-call-frontends 'post-command)
(and (numberp company-idle-delay)
- (company--should-idle-begin)
+ (company--should-begin)
(setq company-timer
(run-with-timer company-idle-delay nil
'company-idle-begin
@@ -1520,7 +1523,7 @@ from the rest of the back-ends in the group, if any, will
be left at the end."
"List of commands after which idle completion is (still) disabled when
`company-begin-commands' is t.")
-(defun company--should-idle-begin ()
+(defun company--should-begin ()
(if (eq t company-begin-commands)
(not (memq this-command company--begin-inhibit-commands))
(or
- [elpa] 34/52: company-gtags: add arguments insertion, (continued)
- [elpa] 34/52: company-gtags: add arguments insertion, Dmitry Gutov, 2014/07/01
- [elpa] 38/52: Indicate current candidate's backend when it's in a group, Dmitry Gutov, 2014/07/01
- [elpa] 39/52: company-update-group-lighter: privatize, Dmitry Gutov, 2014/07/01
- [elpa] 41/52: Improve comment wording, Dmitry Gutov, 2014/07/01
- [elpa] 37/52: company-pseudo-tooltip-edit: update company-width, Dmitry Gutov, 2014/07/01
- [elpa] 44/52: company-keywords-alist: ass js-mode -> javascript-mode alias, Dmitry Gutov, 2014/07/01
- [elpa] 43/52: company--should-idle-begin: use a more careful check, Dmitry Gutov, 2014/07/01
- [elpa] 42/52: Don't assign to company-point in company-abort and company-finish, Dmitry Gutov, 2014/07/01
- [elpa] 46/52: Never delete the "added newline" twice, Dmitry Gutov, 2014/07/01
- [elpa] 47/52: Don't call post-completion methods and hook in continue-failed case, Dmitry Gutov, 2014/07/01
- [elpa] 45/52: Bring back this-command check when company-idle-delay is t,
Dmitry Gutov <=
- [elpa] 40/52: Define company-sort-by-backend-importance, Dmitry Gutov, 2014/07/01
- [elpa] 49/52: company-backends: add better introduction, Dmitry Gutov, 2014/07/01
- [elpa] 48/52: Avoid requiring match is certain circumstances, Dmitry Gutov, 2014/07/01
- [elpa] 35/52: company-css: Add HTML5 tags and more CSS3 properties, Dmitry Gutov, 2014/07/01
- [elpa] 51/52: Release 0.8.1, Dmitry Gutov, 2014/07/01
- [elpa] 52/52: Merge commit '7c14dedc79bf0c6eaad5bf50b80ea80dd721afdc' from company, Dmitry Gutov, 2014/07/01
- [elpa] 50/52: company-capf.el: Don't ignore things like semantic-capf, Dmitry Gutov, 2014/07/01