Closed rommeswi closed 1 year ago
It seems that Tex-latex-mode is unavailable unless one has at least once started Tex-mode in a session. So it seems that latex.el in elpa/29.0/develop/ is not loaded at startup.
Fixed this by running SPC SPC package-autoremove I don't know why this worked but somehow it did.
Actually let me take that back, SPC SPC package-autoremove fixes the problem for exactly one startup (during which spacemacs reinstalls a bunch of packages) and then fails again on the next startup.
I figured out one more thing: when TeX-latex-mode fails, the available functions are TeX-tex-mode and TeX-mode (tex-mode). Calling either of the two triggers TeX-latex-mode to be loaded.
Hmmm, could be related to some defer loading behaviour please remove the "defer t" keyword from "latex/init-auctex" in the latex layer's package.el file and retry. This could solve the issue for you for now at least.
I have not yet emacs 29 available so I can't test it myself.
Indeed, this solved the problem! Thank you!
unfortunately, removing "defer t" breaks a bunch of my dotfile configurations for the latex layer so eventually I had to switch back. Is there any way I can fix this problem permanently? I would be willing to spend time to investigate but would need a few hints what I should be looking for.
I never found out what happened but after updating packages today (not auctex, though), the issue disappeared
Description :octocat:
latex layer broken on Emacs29
Reproduction guide :beetle:
Observed behaviour: :eyes: :broken_heart: Spacemacs opens the file in fundamental mode and displays error: "File mode specification error: (void-function TeX-latex-mode)"
Expected behaviour: :heart: :smile: Spacemacs starts the latex layer when opening a .tex document
System Info :computer:
Backtrace :paw_prints: