Re: \documentclass does not activate latex-mode

2022-08-19 Thread Ikumi Keita
> jfbu writes: >> For the time being, you can work around by >> (let (entry) >> (while (setq entry (rassq 'tex-mode auto-mode-alist)) >> (setcdr entry #'TeX-tex-mode))) >> in your personal init file. > wow it does work! Now that's quite magic to me. I have delayed for two > decades learning e

Re: \documentclass does not activate latex-mode

2022-08-18 Thread jfbu
Hi Keita, Le 18/08/2022 à 09:40, Ikumi Keita a écrit : Hi Jean, sorry for late response. I just came back from my summer vacation. no worries whatsoever thanks for all your volunteer work on AUCTeX ! jfbu writes: when I open a buffer on this file \def\foo{bar} \documentclass{foob

Re: \documentclass does not activate latex-mode

2022-08-18 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > [To developpers] > Why on earth does tex-mode.el use advice for its own function? The whole > above piece of code can just be composed up as > -- > (defvar tex-mode--recursing nil) > (define-deriv

Re: \documentclass does not activate latex-mode

2022-08-18 Thread Ikumi Keita
Hi Jean, sorry for late response. I just came back from my summer vacation. > jfbu writes: > when I open a buffer on this file > > \def\foo{bar} > \documentclass{foobar} > \begin{document} > hello > \end{document} > > there is no activation of latex-mode. > I have to manually typ

Re: \documentclass does not activate latex-mode

2022-08-17 Thread jfbu
Hi Le 15/08/2022 à 14:41, Mandar Mitra a écrit : jfbu wrote (Sun, Aug 14, 2022 at 06:14:12PM +0200): I can not add any file local variable, the file is output by some build. You can't modify the build file that generates your .tex file? Something as simple as renaming haru.tex to haru.ltx

Re: \documentclass does not activate latex-mode

2022-08-15 Thread Mandar Mitra
jfbu wrote (Sun, Aug 14, 2022 at 06:14:12PM +0200): > I can not add any file local variable, the file is output > by some build. You can't modify the build file that generates your .tex file? Something as simple as renaming haru.tex to haru.ltx might fix things for you. Some more questionable su

\documentclass does not activate latex-mode

2022-08-14 Thread jfbu
Hi, when I open a buffer on this file \def\foo{bar} \documentclass{foobar} \begin{document} hello \end{document} there is no activation of latex-mode. I have to manually type-in M-x latex-mode. What makes matters worse is that, in real life, I also have issued (setq TeX-auto-save ni