[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex b2571b6 40/42: Don't set company-minimum-prefix-
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex b2571b6 40/42: Don't set company-minimum-prefix-length in tex mode buffers |
Date: |
Thu, 23 Nov 2017 06:06:15 -0500 (EST) |
branch: externals/auctex
commit b2571b6048928882903204553716b9ec19d3e15b
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Don't set company-minimum-prefix-length in tex mode buffers
* tex.el (VirTeX-common-initialization): Don't set
company-minimum-prefix-length in tex mode buffers.
AUCTeX used to set company-minimum-prefix-length to 1 initially because
there
aren't too many TeX completions provided by AUCTeX itself. However, some
users
use multiple completion backends in TeX modes (like dabbrev for example),
and
then the number of completion candidates increases dramatically.
Also see https://github.com/syl20bnr/spacemacs/issues/9388 and
https://github.com/alexeyr/company-auctex/issues/18.
---
tex.el | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/tex.el b/tex.el
index 2e2a71c..8eab9bc 100644
--- a/tex.el
+++ b/tex.el
@@ -3843,14 +3843,7 @@ The algorithm is as follows:
;; Standard Emacs completion-at-point support
(when (boundp 'completion-at-point-functions)
(add-hook 'completion-at-point-functions
- #'TeX--completion-at-point nil t)
-
- ;; Support for company-mode
- (when (fboundp 'company-mode)
- ;; By default, company completions kick in after a prefix of 3 chars has
- ;; been typed. Since we don't have too many completions, that's too
- ;; much.
- (set (make-local-variable 'company-minimum-prefix-length) 1)))
+ #'TeX--completion-at-point nil t))
;; Let `TeX-master-file' be called after a new file was opened and
;; call `TeX-update-style' on any file opened. (The addition to the
- [elpa] externals/auctex 5a538cb 19/42: Prevent possible truncation of list value, (continued)
- [elpa] externals/auctex 5a538cb 19/42: Prevent possible truncation of list value, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex a944077 12/42: Use `delete' correctly for list variable, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 20b6fd0 21/42: Add test abount truncation of list, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 474cc4f 23/42: ; * doc/tex-ref.tex (): Fix typo and copyright year., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex fe06211 24/42: Fix doc strings and comments, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 9e1aa85 22/42: Make preview-latex parsing robust to fix Bug#20773, Bug#27088, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5d8ac95 25/42: Cosmetic Change, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 837d590 27/42: Remove use of .runandhide operator, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex f362325 28/42: ; * latex.el (LaTeX-document-style-hook): Fix a typo., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex ea7ff48 29/42: * tex.el (TeX-math-input-method-off-regexp): Turn defvar into defcustom., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b2571b6 40/42: Don't set company-minimum-prefix-length in tex mode buffers,
Tassilo Horn <=
- [elpa] externals/auctex 0d8e6c6 34/42: Document `TeX-math-input-method-off-regexp' properly., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex f0145f4 30/42: Add new function `LaTeX-env-longtable', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 213b705 33/42: Mention the necessity of GNU make, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 842471c 37/42: Give proper argument to `TeX-command-expand', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b69d894 39/42: * doc/changes.texi: Mention compatibility of preview with GS 9.22., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5d6839e 36/42: Add test for the recent change about `TeX-kpathsea-path-delimiter', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5f007f1 42/42: Regenerate tex-site.el and docs, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b20eea0 26/42: Fix Copyright year, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 463ead7 35/42: Document `TeX-view-evince-keep-focus', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 420ec0e 32/42: Bug fix and code refactoring related to kpathsea, Tassilo Horn, 2017/11/23