I upgraded AucTeX to 12.1.2, hoping that it would fix a problem with the displaying of verbatim environments.
This caused a range of problems which I am trying to track down step by step.
One is that the Preview, LaTeX and Command menus disappeared. Instead, I now have a "TeX" menu right of "Tools". The mode displayed in the status bar is "LaTeX", though.
This seems wrong to me. There are more things that are broken, but I'd like to start with that.
(require 'tex-site)
as part of your Emacs initialization. I guess you don't have:override advice: ‘TeX-latex-mode’
in the buffer obtained when typingC-h m
in a buffer visiting a LaTeX file. With Emacs' default LaTeX mode, you should seeLaTeX mode defined in ‘tex-mode.el’:
followed byMajor mode for editing files of input for LaTeX.
, whereas with AUCTeX, one gets pointed to an override that leads to an ELisp file which is part of AUCTeX. – frougon Apr 10 '19 at 18:28LaTeX mode defined in ‘tex-mode.el
. However, adding(require 'tex-site)
I getFile local-variables error: (void-function TeX-latex-mode)
. – user52366 Apr 10 '19 at 19:24tex-mode.el
mentioned first with AUCTeX in the*Help*
buffer, but then comes the override I mentioned. Where did you put this(require 'tex-site)
? How did you install AUCTeX? It should always provide'tex-site
, AFAIK. – frougon Apr 10 '19 at 20:04(require 'text-site)
was in.emacs
, but I think with the elpa installation it should not be there. – user52366 Apr 11 '19 at 5:47'tex-site
, not'text-site
, but you probably knew that. My diagnostic is that your AUCTeX 12.1.2 wasn't completely installed, since you reported(void-function TeX-latex-mode)
, and this function is shipped with AUCTeX (and not with standard Emacs). I can't really help more, as I never use thepackage.el
stuff. I install AUCTeX from the Git repo, just tested the current latest commit, no problem. I wrote a short installation script to ease upgrades, can share if you are on Linux. – frougon Apr 11 '19 at 8:04