bug-auctex
[Top][All Lists]
Advanced

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

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


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

Franz Haeuslschmid <address@hidden> writes:

> Dear bug-fixing team,
>
> occasionally, that is, when I remove all sorts of generated files
> from my document project's directories, preview asks me to enter
> the path to a master file.
>
> The steps to reproduce would include:
>   * start XEmacs: xemacs --vanilla
>   * Evaluate in the *scratch* buffer:
>
>      (require 'tex-site)
>      (setq preview-gs-command "gswin32c")
>      (setq-default TeX-master nil)
>
>   * Visit a file that is included by a master document file and
>     generate a preview with `C-c C-p C-p'.
>
> These are two files that can be used to reconstruct that
> behaviour:
>
> ,----[ master.tex ]
> | \documentclass{article}
> | \usepackage{acronym}
> | \begin{document}
> | 
> | \include{slave}
> | 
> | \end{document}
> | 
> | %%% Local Variables: 
> | %%% mode: latex
> | %%% TeX-master: t
> | %%% End: 
> `----
>
> ,----[ slave.tex ]
> | $P_Q$
> | 
> | %%% Local Variables: 
> | %%% mode: latex
> | %%% TeX-master: "master"
> | %%% End: 
> `----
>
> I know, by setting `TeX-master' to nil, I require AUCTeX for
> every new TeX file to ask me, to set its master.

For every new file.  But slave.tex is not new, and it _does_ set
TeX-master locally anyway, so the default setting should not matter at
all.

> However, I find it irritating to specify another master file for a
> preview of my document.

There is definitely something wrong here.  Before such a thing
happens, what do you get upon entering

M-: TeX-master RET

_in_ the file where this problem occurs?  Does it display "master"?
If it does, does the C-c C-p C-p then indeed ask the master file
question nevertheless?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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