[Top][All Lists]

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

Re: [Bug-AUCTeX] Re: preview-1.257; Preview and local variable TeX-maste

From: David Kastrup
Subject: Re: [Bug-AUCTeX] Re: preview-1.257; Preview and local variable TeX-master
Date: Sat, 11 Jun 2005 00:43:12 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * David Kastrup (2005-06-10) writes:
>> I think this behavior must be relatively new, then.  I can't
>> remember seeing it before.
> The behavior is present in AUCTeX 11.50 but not in 11.14.  The
> reason is that 11.14 sets a master based on the following test in
> `TeX-master-file'.
>        ;; Is this a master file?
>        ((and TeX-header-end (re-search-forward TeX-header-end 10000 t))
>         (setq TeX-master my-name))
> According to the change log I removed the test on 2004-05-02 because
> it yields incorrect results.

Things like that make me wonder whether I am actually using the
software myself.  Maybe I have enough _region_.tex files flying around
to never notice the effect.

Now _region_.tex should likely have the file as master from which it
cut out pre- and postamble.  At least it appears like any dumped
format for preview-latex should likely be taken from the master file.
I am not sure whether TeX-master actually has an influence on that:
maybe setting TeX-master unconditionally to t in _region_.tex would
actually not be a problem: after all, _region_.tex is intended to be
compilable on its own.

But maybe users would appreciate it if TeX-home-buffer from the region
file (however they got there) would take them to the master after all.
Don't we have some variable now for overriding the master query with a
fixed setting?  How about let-ting it to (or TeX-master t) when we
create the region file?

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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