Hi Arash, >>>>> Arash Esbati <[email protected]> writes: > Thanks, that was the missing piece. I had in my mind that > `TeX-auto-parser' is buffer-local. Would it break something if we do > this: > diff --git a/tex.el b/tex.el > index 317b8b49..49f95806 100644 > --- a/tex.el > +++ b/tex.el > @@ -3839,7 +3839,7 @@ The algorithm is as follows: > "Parsing TeX files from AUCTeX." > :group 'AUCTeX)
> -(defvar TeX-auto-parser '((styles TeX-auto-file TeX-run-style-hooks))) > +(defvar-local TeX-auto-parser '((styles TeX-auto-file TeX-run-style-hooks))) > ;; Alist of parsed information. > ;; Each entry is a list with the following elements: > ;; That alone wouldn't work. Suppose that you open two LaTeX files. The second buffer wouldn't have `TeX-auto-parser' updated. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine
