François Patte <***@mi.parisdescartes.fr> writes:
Hi François,
Post by François Pattehttp://emacs.stackexchange.com/questions/20330/after-upgrading-auctex-latex-mode-is-unusable-invalid-function-tex-auto-add
I reinstall the stuff from elpa and it works
Good! Ah, I think I remember we've had this problem for some users some
years back which I didn't remember anymore.
Post by François Patte*but* I lost the automatic addition of local variables at the end of a
%%% mode: latex
%%% TeX-master: "journee_monde_indien-beamer"
It won't local variables if there are no values changed from the
defaults. So I guess you want it to query you for the master file when
creating a new TeX file. For that, add (setq-default TeX-master 'dwim)
(or t instead of 'dwim) to your ~/.emacs.
,----[ C-h v TeX-master RET ]
| TeX-master is a variable defined in âtex.elâ.
| Its value is âdwimâ
| Original value was t
|
| Automatically becomes buffer-local when set.
| This variable is safe as a file local variable if its value
| satisfies the predicate â(lambda (x) (or (stringp x) (member x (quote (t nil shared dwim)))))â.
|
| Documentation:
| *The master file associated with the current buffer.
| If the file being edited is actually included from another file, you
| can tell AUCTeX the name of the master file by setting this variable.
| If there are multiple levels of nesting, specify the top level file.
|
| If this variable is nil, AUCTeX will query you for the name.
|
| If the variable is t, AUCTeX will assume the file is a master file
| itself.
|
| If the variable is âshared, AUCTeX will query for the name, but not
| change the file.
|
| If the variable is âdwim, AUCTeX will try to avoid querying by
| attempting to âdo what I meanâ; and then change the file.
|
| It is suggested that you use the File Variables (see the info node in
| the Emacs manual) to set this variable permanently for each file.
|
| You can customize this variable.
`----
Post by François Patteadding (require 'beamer) is not working!
If you mean the beamer style with "beamer mode", that should be loaded
automatically in LaTeX documents of \documentclass{beamer}. You can
check using `C-h v TeX-active-styles'. The value of that variable
should contain "beamer" in such documents. If that's not the case, you
can force AUCTeX to check again using `C-u C-c C-n'.
Bye,
Tassilo