bug-auctex
[Top][All Lists]
Advanced

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

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


From: Harald von Aschen
Subject: Re: [Bug-AUCTeX] 11.85; TeX-parse-self is not active
Date: Fri, 12 Sep 2008 02:22:32 +0200

At 18:24 10.09.2008, you wrote:

Consider the file "test.tex" whose contents are

\documentclass{article}
\usepackage{amsmath}

[...]

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

saving

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?

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.

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

Best regards and thank you for this great AucTeX! Harald




reply via email to

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