file path problems with pdf output

"Bj?rn Pedersen" <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

If the bug (or problem) is triggered by a specific (La)TeX
file, you should try to produce a minimal sample file showing the
problem and include it in your report.

Your bug report will be posted to the AUCTeX mailing list.

Following scenario:

testdir_top:
 dirtest.tex
 *** 
\documentclass{article}

\begin{document}
This is the top document
\input{subdir/subdirtest}
\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
 ***
testdir_top/subdir:
 subdirtest.tex:
 **** 
Some Text in subdir file....

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "../dirtest"
 ****

works correctly with dvi-mode.

In pdf-mode, when trying to view from the subdirtest.tex buffer,
it prompts for xpdf ../dirtest.pdf, but executes xpdf in testdir_top,
so xpdf cannot find the pdf file. Manually removing ../ in the minibuffer 
works. Specifing an absoulte  path for TeX-master works correctly, too. 

Why do I use relative paths for TeX-master? It is a larger project
which is distributed to different machines in differnt absolute positions.


From the Tex Command customize group:
[INS] [DEL] Extension: ^dvi$
            Choice: [Value Menu] Regexp: .
            Command: %(o?)xdvi %dS %d
[INS] [DEL] Extension: ^pdf$
            Choice: [Value Menu] Regexp: .
            Command: xpdf %o

It thems, the the %o expansion should not use the path part, or expand
to the absolute path of the master file.

Any ideas? 

 Best regards an thanks for your beautiful work!
 Björn

Emacs  : XEmacs 21.4 (patch 15) "Security Through Obscurity" [Lucid] (i686-pc-linux, Mule) of Sat May 22 2004 on bjoern
Package: AUCTeX CVS-5.478

current state:
==============
(setq
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("style/" "auto/"
		  "/usr/local/lib/xemacs-21.4.15/xemacs-packages/lisp/auctex/style/" "/usr/local/var/auctex/")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master "../dirtest"
 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.