[Tex/LaTex] how to make (TeX-command-run-all) save automatically without asking

auctexemacs

I have just upgraded to AUCTeX 11.89.1 in emacs and find the new command (TeX-command-run-all) quite convenient. One problem is that after modifying the file and typing C-c C-a, confirmation is needed to save the file first.

I suspect that I kind of only need to set something to nil to deactivate this confirmation step, but I have not found a way. Any suggestions? Many thanks!

Best Answer

The variable TeX-save-query controls this behavior:

User Option: TeX-save-query

If non-nil, then query the user before saving each file with TeX-save-document.

Add the following line to your init file

(setq TeX-save-query nil)