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

> Hi Hongyi,
>
> >>>>> Hongyi Zhao <hongyi.z...@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.z...@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