Re: void-function LaTeX-add-environments while loading texinfo.tex.

Ralf Angeli <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Lute Kamstra (2005-02-08) writes:

> While loading texinfo.tex (version 4.8), I get:
>
> Debugger entered--Lisp error: (void-function LaTeX-add-environments)
>   LaTeX-add-environments(("epsffig" LaTeX-env-epsffigure))
[...]
>   TeX-run-style-hooks("plain" "texinfo" "pdfcolor" "epsf" "txi-")

texinfo.tex is regarded as a plain TeX file.  It loads epsf.tex for
which an AUCTeX style file exists.  This style file tries to add
"epsffig" to the list of known LaTeX environments but fails because
latex.el is not loaded.

The error can be prevented by calling `LaTeX-add-environments' only if
it is actually defined.  But looking at `LaTeX-env-epsffigure' in
style/epsf.el I'd rather get rid of that function completely.  It
duplicates a lot of the functionality and code of `LaTeX-env-figure'
and leads to unnecessary maintenance efforts.  For example the patch
for `LaTeX-env-figure' I sent in response to Frank's last error report
would have to be applied there as well.  It inserts a "center"
environment instead of "\centering" etc. etc.  I guess epsf.tex is
pretty much superseded by graphicx.sty and friends anyway, right?  In
that case it probably wouldn't hurt to remove that function.  Any
objections?

-- 
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.