auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Fix parsing of new auto types in style files


From: Tassilo Horn
Subject: Re: [AUCTeX-devel] Fix parsing of new auto types in style files
Date: Thu, 26 Mar 2015 04:56:05 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

Hi Mosè,

> we need to do a manual reparse so that prepare and cleanup functions
> are run.  How about adding
>
>     (add-hook 'TeX-update-style-hook #'TeX-auto-parse t)
>
> in those files?  Can you see side effects other than a slight slow
> down in file loading?  What do you think?

I think that's the right thing to do.

> Other suggestions to fix the problem?

The style relevant style hooks could call `TeX-auto-parse' themselves
but then in a document with auto-parser-using styles a, b and c, it
would get called six times.  So your solution is clearly better.

Bye,
Tassilo




reply via email to

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