[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] multi-file support
From: |
Richard Lewis |
Subject: |
[AUCTeX-devel] multi-file support |
Date: |
Thu, 05 May 2005 13:54:31 +0100 |
User-agent: |
Gnus Emacs (gnu/linux) |
[Probably the wrong time to be reporting small matters, but]
According to `C-h v TeX-master RET',
|If the variable is 'shared, AUCTeX will query for the name, but not
|change the file.
but I never get asked.
One way to test this is to have a file
blah.tex:
,----
| X
|
| %%% Local Variables:
| %%% mode: latex
| %%% TeX-master: shared
| %%% End:
`----
then
emacs -Q -eval "(progn (require 'tex-site)
(setq TeX-auto-save t TeX-parse-self t)
(setq-default TeX-master nil))" blah.tex
then `C-c C-c RET' runs ``latex "\nonstopmode\input{blah.tex}"'' and
we get a 'missing \begin{document}' error.
As far as I understand this [i.e., not very well], TeX-master-file
will only ask if its 3rd argument is t, but TeX-command-master just
calls TeX-master-file with no arguments. I would suggets the
following patch which sets the 3rd argument to t, but there are a few
places where just (TeX-master-file) is used so maybe they all need to
change? but then why not just get rid of the last arg to
TeX-master-file? (ie always ask the user if we dont know what the
master file is)
--- /homedir/richard/.src/auctex-cvs/tex-buf.el Tue Apr 26 12:03:26 2005
+++ /homedir/richard/.apps/share/emacs/site-lisp/auctex/tex-buf.el Wed Apr
27 23:00:53 2005
@@ -92,7 +92,7 @@
If a prefix argument OVERRIDE-CONFIRM is given, confirmation will
depend on it being positive instead of the entry in `TeX-command-list'."
(interactive "P")
- (TeX-command (TeX-command-query (TeX-master-file)) 'TeX-master-file
+ (TeX-command (TeX-command-query (TeX-master-file nil nil t)) 'TeX-master-file
override-confirm))
(defvar TeX-command-region-begin nil)
Emacs : GNU Emacs 22.0.50.5 (i386-unknown-freebsd5.4, X toolkit, Xaw3d scroll
bars)
of 2005-04-26
Package: 2005-05-03
- [AUCTeX-devel] multi-file support,
Richard Lewis <=
- Re: [AUCTeX-devel] multi-file support, Ralf Angeli, 2005/05/05
- Re: [AUCTeX-devel] multi-file support, David Kastrup, 2005/05/05
- Re: [AUCTeX-devel] multi-file support, Ralf Angeli, 2005/05/06
- Re: [AUCTeX-devel] multi-file support, David Kastrup, 2005/05/06
- Re: [AUCTeX-devel] multi-file support, Ralf Angeli, 2005/05/06
- Re: [AUCTeX-devel] multi-file support, David Kastrup, 2005/05/06
- Re: [AUCTeX-devel] multi-file support, Ralf Angeli, 2005/05/06
- Re: [AUCTeX-devel] multi-file support, David Kastrup, 2005/05/06
- Re: [AUCTeX-devel] multi-file support, Ralf Angeli, 2005/05/06
- Re: [AUCTeX-devel] multi-file support, David Kastrup, 2005/05/06