[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TeX-remove-style-hook is local

From: Tassilo Horn
Subject: Re: TeX-remove-style-hook is local
Date: Mon, 15 Jun 2020 14:28:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Ikumi Keita <> writes:

>> I've committed your patch (except for the FIXME which I guess was
>> more of a note to us AUCTeX maintainers).
> It seems that newly created LaTeX documents lose appropriate style
> information after this commit.
> [How to reproduce]
> 1. Find some nonexistent latex file, e.g. abc.tex, by C-x C-f.
> 2. C-c C-e document RET
> 3. article RET RET RET
> 4. C-c C-e
> 5. Then, completion candidates are limited to "abstract" only. You
> cannot select "enumerate" nor "equation", even "itemize" prompted for
> default.
> Prior to this commit, addition to TeX-remove-style-hook was done on
> its local value, so the value was erased by major mode function. Thus
> the role of TeX-remove-style was relatively small. However, now
> TeX-remove-style-hook has handful of functions acting in their
> designed way, so TeX-remove-style called in TeX-arg-document
> introduces incompatibility.
> Fortunately, C-c C-n (or C-x C-v after saving the file) seems to
> recover ordinary behavior.

So how about calling TeX-normal-mode instead of TeX-update-style in
TeX-arg-document?  That seems to do the trick.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]