Steve Youngs <youngs(a)xemacs.org> writes:
This is because the files that 'TeX-lisp-directory' points to
end up
in <emacs-roots>/xemacs/xemacs-packages/etc/auctex/style/.
It would be very bad for that directory to end up in 'load-path'.
AUC TeX uses 'TeX-style-path', not 'load-path', for searching for
files. It won't find them if they are in 'load-path', and there they
might shadow other real Lisp packages.
The files in the "style/" and "auto/" directories are application
specific data files, not general purpose Lisp packages. The fact that
they are are in Lisp format is an accident of implementation.
(defvar TeX-lisp-directory (concat (locate-data-directory
"auctex")
"style/") "*The directory where the AUC TeX lisp files are
located.")
That is bad too, it will mean "../etc/auctex/style/style/" will end up
in 'TeX-style-path' instead of "../etc/auctex/style/", preventing AUC
TeX from finding the style files.