[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3b5415a 41/78: company-tng: default config: Disable compan
From: |
Dmitry Gutov |
Subject: |
[elpa] master 3b5415a 41/78: company-tng: default config: Disable company-require-match |
Date: |
Sun, 18 Feb 2018 07:40:21 -0500 (EST) |
branch: master
commit 3b5415a12e453b8433209c8afd51b47ddbeba448
Author: Nikita Leshenko <address@hidden>
Commit: Nikita Leshenko <address@hidden>
company-tng: default config: Disable company-require-match
Requiring a match doesn't work with company-tng because the expected
behavior is
to be able to type any key during completion and it will be inserted into
the
buffer.
The default value for company-require-match is to require match on explicit
action, so we can reproduce as following:
1. Open *scratch*
2. Type "(de"
3. M-x company-complete
4. RET RET RET...
The RET won't register because it's not part of the completion but this is
not
how company-tng should work. The RETs should be inserted into the buffer.
---
company-tng.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/company-tng.el b/company-tng.el
index fd5646f..46592da 100644
--- a/company-tng.el
+++ b/company-tng.el
@@ -60,6 +60,9 @@
;; candidates. You also need to decide which keys to unbind, depending
;; on whether you want them to do the Company action or the default
;; Emacs action (for example C-s or C-w).
+;;
+;; We recommend to disable `company-require-match' to allow free typing at any
+;; point.
;;; Code:
@@ -104,6 +107,7 @@ confirm the selection and finish the completion."
;;;###autoload
(defun company-tng-configure-default ()
"Applies the default configuration to enable company-tng."
+ (setq company-require-match nil)
(setq company-frontends '(company-tng-frontend
company-pseudo-tooltip-frontend
company-echo-metadata-frontend))
- [elpa] master b22df34 60/78: Use inhibit-redisplay, (continued)
- [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, 2018/02/18
- [elpa] master 3b5415a 41/78: company-tng: default config: Disable company-require-match,
Dmitry Gutov <=
- [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