[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] 11.85; TeX-parse-self is not active

From: José Carlos Santos
Subject: Re: [Bug-AUCTeX] 11.85; TeX-parse-self is not active
Date: Fri, 12 Sep 2008 10:17:22 +0100
User-agent: Thunderbird (Windows/20080708)

On 12-09-2008 1:22, Harald von Aschen wrote:

Consider the file "test.tex" whose contents are



If, with the cursor right after the word "See", I type C-c C-) and
then I choose the "e" option, then I get "~(\ref{eq:a})" but since
this file uses the amsmath package, what I sould get is
"~\eqref{eq:a}". What might be wrong with my intallation? Two notes:


2) If I do C-c C-n, then yes, I do get "~\eqref{eq:a}".

Because I remember I have encountered the same problem (and this was most annoying after starting with AucTex as a new user), my ideas behind this are a misunderstanding in the documentation:

a) Making a new document, entering the packages and then


and then using reftex seems that parsing was not done.

See AucTeX documentation chapter 9 "Automatic Parsing" (pg. 54?):

    (setq TeX-auto-save t) ; Enable parse on save.

But below this:

    TeX-auto-save [User Option]
    Automatically save style information when saving the buffer.

For me, it seems that the variable set with setq is the same as the variable below and does not "enable parse on save".

After closing file and reopening or saying C-c C-n the file is parsed.
I suppose, José, all is working fine after closing and reopening the file?

No, not at all.

Ralf: You can see this behaviour also with language packs (babel) and quotation marks or other packages supported by AucTeX.

But for me it is not a bug it is by design and it is totally correct; this means: Parsing is not done for each word I'm typing, parsing is not done "automagically" on save, but only manually or by reopening file.

Parsing when saving isn't very valuable if you have in mind big documents which have to be reparsed every saving process (e.g. master file is unchanged and only subdoc is changing)... (And I'm "latexing" sometimes in very short intervals.)

My proposal for documentation: Perhaps someone can state this explicitly in the documentation that parsing for a new document has to be done manually for the first time? (And fixing the different defs for TeX-auto-save.)

And "TeX-parse-self" set to true only means that the file will be parsed during opening, this means a new file will not be parsed until it is closed and reopened.

This behavior looks natural to me.

If I'm not correct here I'm very, very sorry.

Thanks for your help, anyway.

The Message buffer even contains these lines (without me doing C-c C-n):
Applying style hooks...
Loading c:/Documents and Settings/jcsantos/My documents/temp/auto/test.el (source)...done
Loading c:/Program Files/Emacs/site-lisp/auctex/style/amsmath.elc...done
Loading c:/Program Files/Emacs/site-lisp/auctex/style/amstext.elc...done
Loading c:/Program Files/Emacs/site-lisp/auctex/style/amsbsy.elc...done
Loading c:/Program Files/Emacs/site-lisp/auctex/style/amsopn.elc...done
Loading c:/Program Files/Emacs/site-lisp/auctex/style/article.elc...done
Applying style hooks... done

Therefore Emacs loads the test.el file and then the style files related
to amstex. It's rather strange why it does not work.

Best regards,

Jose Carlos Santos

reply via email to

[Prev in Thread] Current Thread [Next in Thread]