I tried to compile the auctex from Emacs MELPA. The version is: 11.88.4
When I first open a .tex file, compile AUCTEX, and change to "TeX-latex-mode", Emacs will work properly, the menu bar also change to latex state.
However, when I close Emacs, restart Emacs again and open a .tex file, Emacs will give:
Debugger entered--Lisp error: (error "Autoloading failed to define function TeX-latex-mode")
And auctex will not work...
It seems the problem is in autoloading certain state when initialize the auctex for a tex file.
Any help?
latex.el
. Doeslocate-library latex
find it? – Andrew Swannload-path
problem. Do you set that in your init file? Or perhaps some initialisation that needs to be delayed to after the package is loaded... What is your emacs version? – Andrew Swann(add-to-list 'load-path' "~/.emacs.d/x_lisp/")
, but that should not affect the auctex, shouldn it? – X.Arthur