[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. b2571b604892888290320
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. b2571b6048928882903204553716b9ec19d3e15b |
Date: |
Thu, 23 Nov 2017 03:01:56 -0500 (EST) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".
The branch, master has been updated
via b2571b6048928882903204553716b9ec19d3e15b (commit)
from b69d894e7a6fea98238ea249f548295ce2d7fff2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b2571b6048928882903204553716b9ec19d3e15b
Author: Tassilo Horn <address@hidden>
Date: Thu Nov 23 08:57:37 2017 +0100
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.
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
-----------------------------------------------------------------------
Summary of changes:
tex.el | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
hooks/post-receive
--
GNU AUCTeX
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] GNU AUCTeX branch, master, updated. b2571b6048928882903204553716b9ec19d3e15b,
Tassilo Horn <=