auctex
[Top][All Lists]
Advanced

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

Re: "%%% TeX-master: t" appears twice.


From: Hongyi Zhao
Subject: Re: "%%% TeX-master: t" appears twice.
Date: Mon, 1 May 2023 12:35:04 +0800



On Monday, May 1, 2023, Ikumi Keita <ikumi@ikumi.que.jp> wrote:
Hi Hongyi,

>>>>> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
> I noticed the following auto-generated LaTeX comment code at the end
> of my file:

> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% TeX-master: t
> %%% End:

> But I want to know why there are two duplicate lines, aka, "%%%
> TeX-master: t"?

The information you provided is too little to answer :-). In general,
AUCTeX pays attention not to do so. If `TeX-add-local-master' is called
in the buffer for some reason, such duplication will appear. However,
`TeX-add-local-master' is called only in `TeX-master-file-ask' in AUCTeX
source, and `TeX-master-file-ask' calls `TeX-add-local-master' only when
there isn't "%%% TeX-master:" line yet.
So I don't know why such duplication occured. (Maybe some 3rd party code
calls `TeX-add-local-master'?)

 Thank you for your comments. I also have no idea, but it seems that such problem doesn't always occur. So. my reasonable guess is that it's caused by some casual operations.

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine

Zhao 


--
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province


reply via email to

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