GNU bug report logs - #29398
company-minimum-prefix-length

Previous Next

Package: auctex;

Reported by: Frederik Beaujean <Frederik.Beaujean <at> lmu.de>

Date: Wed, 22 Nov 2017 16:22:02 UTC

Severity: normal

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mosè Giordano <mose <at> gnu.org>
To: Frederik Beaujean <Frederik.Beaujean <at> lmu.de>, Tassilo Horn <tsdh <at> gnu.org>
Cc: 29398 <at> debbugs.gnu.org
Subject: bug#29398: company-minimum-prefix-length
Date: Wed, 22 Nov 2017 23:31:22 +0100
Hi Fred,

2017-11-22 10:11 GMT+01:00 Frederik Beaujean <Frederik.Beaujean <at> lmu.de>:
> Dear auctex developers,
>
> I'm using auctex with the company completion system. The problem is that
>
> company-minimum-prefix-length
>
> is ignored in tex files. This is annoying when typesetting math with the
> usual single-character symbols like i or n because I have to press C-g
> multiple times to turn of the completion overlay.
>
> I had initially posted this issue on github with spacemacs and
> company-auctex, it affects several people as well
>
> https://github.com/syl20bnr/spacemacs/issues/9388
>
> https://github.com/alexeyr/company-auctex/issues/18
>
> The root of the problems seems this code in auctex/tex.el in v11.91
>
> ;; 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)))
>
> I don't understand the explanation given for creating this local variable. I
> request that it be removed or done in such a way that it doesn't override
> global user settings.

You can override this setting with

(add-hook 'TeX-mode-hook
      '(lambda ()
         (setq company-minimum-prefix-length 3)))

However, I see that you'd like to avoid setting again the option.
Tassilo, could you please give a look at this?

Bye,
Mosè




This bug report was last modified 7 years and 180 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.