GNU bug report logs -
#70807
Resetting *-local variables before parsing
Previous Next
Reported by: Arash Esbati <arash <at> gnu.org>
Date: Mon, 6 May 2024 19:11:02 UTC
Severity: normal
Tags: fixed
Fixed in version 14.1.0
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Keita,
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
> Thanks, now I realize what is difficult. What we are facing is related
> to this comment in `TeX-run-style-hooks':
> ;; This happens in case some style added a new parser, and
> ;; now the style isn't used anymore (user deleted
> ;; \usepackage{style}). Then we're left over with, e.g.,
> ;; (LaTeX-add-siunitx-units "\\parsec"), but the function is
> ;; defined in a style siunitx.el that's not loaded anymore.
>
> The problem is hard to solve because it is almost impossible for AUCTeX
> to be aware that the user has deleted or commented out \usepackage :-(
Thanks. Indeed, AUCTeX will know about a removed \usepackage after the
next re-parse, which can be late.
> ...Hmm, I began to be puzzled. I realize that I'm not sure why we need
> the entries for `LaTeX-verbatim-macros-with-delims-local' in
> parsed-file.el. `TeX-run-style-hooks' in the parsed-file.el runs hooks
> associated with "hyperref", one of which adds various items to -local
> variables as expected, even for child files which are \include'd or
> \input'ted. What am I missing?
Probably the same bit I'm missing 🧐 I always wondered why that
information is written to a parsed-file.el because of the reasons you
mentioned above.
Best, Arash
This bug report was last modified 77 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.