## LaTeX forum ⇒ AUCTeX ⇒ AUCTeX — Parse on Save not working

Information and discussion about AUCTeX, an integrated LaTeX environment based on GNU Emacs and XEmacs
linuxfever
Posts: 1
Joined: Sun Jun 19, 2011 12:06 pm

### AUCTeX — Parse on Save not working

Hello all,

Could someone please explain to me why the following is happening. I have a latex document which has one equation labeled "eq:1". If I type "\ref{" and then try to autocomplete, then emacs fills in the macro with the correct label, i.e "eq:1".

Now, if I change the label to "eq:2", save the file, and try auto-completion, it still fills in the macro with "eq:1".

In my .emacs file I have the following two lines:

(setq TeX-auto-save t)
(setq TeX-parse-self t)

which, in theory, should update the labels everytime I save the file.

The only way that I have managed to make this work, is to give "C-c C-n" which forces the generation of the style information.

How I can make Auctex update the style information automatically when the file is saved? I thought that this was the whole point of setting "TeX-auto-save" to "t", but I am probably mistaken. If so, what does "TeX-auto-save" do?

Thanks for any suggestions!