[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master d033112 28/78: Merge pull request #720 from aaronjensen/ab
From: |
Dmitry Gutov |
Subject: |
[elpa] master d033112 28/78: Merge pull request #720 from aaronjensen/abort-dabbrev-on-input |
Date: |
Sun, 18 Feb 2018 07:40:18 -0500 (EST) |
branch: master
commit d033112748440e772f0173b28356e956ce57d8a0
Merge: 096991d cf89f7c
Author: Dmitry Gutov <address@hidden>
Commit: GitHub <address@hidden>
Merge pull request #720 from aaronjensen/abort-dabbrev-on-input
Abort dabbrev search on input pending
---
company-dabbrev.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/company-dabbrev.el b/company-dabbrev.el
index b1a9def..ecb7feb 100644
--- a/company-dabbrev.el
+++ b/company-dabbrev.el
@@ -110,7 +110,8 @@ This variable affects both `company-dabbrev' and
`company-dabbrev-code'."
(goto-char (if pos (1- pos) (point-min)))
;; Search before pos.
(let ((tmp-end (point)))
- (company-dabbrev--time-limit-while (> tmp-end (point-min))
+ (company-dabbrev--time-limit-while (and (not (input-pending-p))
+ (> tmp-end (point-min)))
start limit 1
(ignore-errors
(forward-char -10000))
@@ -119,14 +120,16 @@ This variable affects both `company-dabbrev' and
`company-dabbrev-code'."
;; Before, we used backward search, but it matches non-greedily,
and
;; that forced us to use the "beginning/end of word" anchors in
;; `company-dabbrev--make-regexp'. It's also about 2x slower.
- (while (re-search-forward regexp tmp-end t)
+ (while (and (not (input-pending-p))
+ (re-search-forward regexp tmp-end t))
(if (and ignore-comments (save-match-data
(company-in-string-or-comment)))
(re-search-forward "\\s>\\|\\s!\\|\\s\"" tmp-end t)
(maybe-collect-match))))
(setq tmp-end (point))))
(goto-char (or pos (point-min)))
;; Search after pos.
- (company-dabbrev--time-limit-while (re-search-forward regexp nil t)
+ (company-dabbrev--time-limit-while (and (not (input-pending-p))
+ (re-search-forward regexp nil t))
start limit 25
(if (and ignore-comments (save-match-data
(company-in-string-or-comment)))
(re-search-forward "\\s>\\|\\s!\\|\\s\"" nil t)
- [elpa] master 0efc9f3 58/78: Reindent, (continued)
- [elpa] master 0efc9f3 58/78: Reindent, Dmitry Gutov, 2018/02/18
- [elpa] master b22df34 60/78: Use inhibit-redisplay, Dmitry Gutov, 2018/02/18
- [elpa] master 307b620 59/78: Simplify how async backends are called (WIP), Dmitry Gutov, 2018/02/18
- [elpa] master 82d41b7 70/78: Avoid an extra redisplay call, Dmitry Gutov, 2018/02/18
- [elpa] master 4004c7f 42/78: Merge pull request #748 from nikital/tng-dont-require-match, Dmitry Gutov, 2018/02/18
- [elpa] master 6ddeae2 43/78: Rework Clang version handling, Dmitry Gutov, 2018/02/18
- [elpa] master 0bd111d 49/78: Add keywords for kotlin-mode, Dmitry Gutov, 2018/02/18
- [elpa] master f3910a2 71/78: Add a comment justifying the duplication [ci skip], Dmitry Gutov, 2018/02/18
- [elpa] master b079bd2 75/78: Revert "Break idle re-starting loop", Dmitry Gutov, 2018/02/18
- [elpa] master 7cc0901 77/78: Release 0.9.5, Dmitry Gutov, 2018/02/18
- [elpa] master d033112 28/78: Merge pull request #720 from aaronjensen/abort-dabbrev-on-input,
Dmitry Gutov <=
- [elpa] master 3b5415a 41/78: company-tng: default config: Disable company-require-match, Dmitry Gutov, 2018/02/18
- [elpa] master 9b4488f 69/78: Rephrase, Dmitry Gutov, 2018/02/18
- [elpa] master e5e2c23 61/78: Make company-clang use cache again, Dmitry Gutov, 2018/02/18
- [elpa] master fe275d6 63/78: Tiny hack for better latency, Dmitry Gutov, 2018/02/18
- [elpa] master cf7141c 65/78: Fix noninteractive runs, Dmitry Gutov, 2018/02/18
- [elpa] master dbdfd6f 64/78: Update the async tests, Dmitry Gutov, 2018/02/18
- [elpa] master 38ef92d 72/78: Force sync when company-require-match is t, Dmitry Gutov, 2018/02/18
- [elpa] master 259cf40 73/78: Break idle re-starting loop, Dmitry Gutov, 2018/02/18
- [elpa] master e65aa3f 78/78: Merge commit '7cc0901489dff3d73ddc845ae060f938ecb85615' from company, Dmitry Gutov, 2018/02/18