bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 2005-06-10; `TeX-ispell-document' for multifile doc in


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 2005-06-10; `TeX-ispell-document' for multifile doc in different directories
Date: Sun, 12 Jun 2005 12:06:23 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

* Franz Haeuslschmid (2005-06-11) writes:

> Evaluating `TeX-ispell-document' in either file will only check
> the spelling of the currently open file, instead of checking the
> whole document.

I fixed the case where the master file would not be found when
`TeX-ispell-document' was executed from a slave file.  Note that for
`TeX-ispell-document' to work from a master file, the slave files have
to be opened as well.  AUCTeX currently does not open these files
automatically.

> It may also be related, that the file name
> completion for macro arguments, e.g. triggered by `C-c RET
> includegraphics', works only well for the master file or other
> document files that reside in the same directory as the master.

Hm, that's working here.  For example I have the files

,----[ master-file.tex ]
| \documentclass{scrbook}
| \usepackage{graphicx}
| \begin{document}
| \end{document}
| 
| %%% Local Variables: 
| %%% mode: latex
| %%% TeX-master: t
| %%% End: 
`----

and

,----[ subdir/slave-file.tex ]
| 
| %%% Local Variables: 
| %%% mode: latex
| %%% TeX-master: "../master-file"
| %%% End: 
`----

Both were opened, edited, and saved with the settings

(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)

That means in the directory where the master file resides there is a
subdirectory auto with a master-file.el file.

Now, when I fire up XEmacs with `xemacs -vanilla', evaluate

(require 'tex-site)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)

and open subdir/slave-file.tex, I get completion of \dictum (which is
specific to scrbook.cls) and \includegraphics (which is specific to
graphicx.sty).

You can check if auto/master-file.el was loaded by looking at the
result of `C-h l'.  You should find something like

Recent minibuffer messages (most recent first):

Applying style hooks... done
Loading /usr/share/xemacs21/site-packages/etc/auctex/style/scrbase.elc...done
Loading /usr/share/xemacs21/site-packages/etc/auctex/style/scrbase.elc...
Loading /usr/share/xemacs21/site-packages/etc/auctex/style/scrbook.elc...done
Loading /usr/share/xemacs21/site-packages/etc/auctex/style/scrbook.elc...
Loading /usr/share/xemacs21/site-packages/etc/auctex/style/graphicx.elc...done
Loading /usr/share/xemacs21/site-packages/etc/auctex/style/graphicx.elc...
Loading /home/angeli/scratch/master-test2/auto/master-file.el...done
Loading /home/angeli/scratch/master-test2/auto/master-file.el...
Applying style hooks...

-- 
Ralf




reply via email to

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