[Top][All Lists]

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

Re: [Bug-AUCTeX] Can't TeX-font on latex2e.texi

From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] Can't TeX-font on latex2e.texi
Date: Sun, 26 Sep 2010 20:11:03 +0200

* Vincent Belaïche (2010-09-23) writes:

> This bug was that I get the value of LaTeX-font-list in the
> TeX-font-list when I edit a .texi file in some condition.
> Actually it seems that the problem has nothing to do with `latex2e.texi'
> or whatever specific file content. But it occurs when during the emacs
> session a LaTeX file has already been opened when you open the first
> .texi file.
> If file opening is in the other order, then no problem. As far as I had
> checked the overwriting was caused by style hook application.

You forgot to mention two things which are essential for reproducing the
bug: First, you have to actually call `TeX-font' in order for
`TeX-font-list' to be changed and second, the problem only occurs if the
LaTeX and the Texinfo files have the same base name.  For the latter
condition there is an entry in the AUCTeX FAQ:

,----[ (info "(auctex)FAQ") ]
|   6. Why is the information in `foo.tex' forgotten when I save
|      `foo.bib'?
|      For various reasons, AUCTeX ignores the extension when it stores
|      information about a file, so you should use unique base names for
|      your files.  E.g. rename `foo.bib' to `foob.bib'.

And the first entry in the list of bugs mentions this as well:

,----[ (info "(auctex)Bugs") ]
|    * The parsed files and style hooks for `example.dtx', `example.sty',
|      `example.drv' and `example.bib' all clash.  Bad.

In a local branch I've once (the files have a time stamp from 2005) made
the style system aware of file extensions.  But the changes never made
it into the main repository, likely because I wasn't too comfortable
with them.  That hasn't really changed after 5 years of not looking at
this code.

Anyway, you can work around the problem either by using different base
names as suggested by the FAQ entry or by putting the LaTeX and the
Texinfo file in separate directories.


reply via email to

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