* Patrick Drechsler (2007-06-16) writes:

> I have a large latex project including many subdirectories. Also,
> I have a single Makefile in the root folder of this
> project. Since Emacs is able to parse the "stuff-at-the-end":
>
> %%% Local Variables: 
> %%% mode: latex
> %%% TeX-master: "../../main"
> %%% End: 
>
> I was wondering if it's possible to pass the "TeX-master"
> information to Emacs' `M-x compile' command.
>
> I would like to use a function `M-x pd-make' --only for this project--
> which invokes the Makefile located in the root folder of this project,
> even if I am invoking `M-x compile' (or `M-x pd-make') from a buffer
> which is visiting a file within a subfolder of this project.
>
> Can somebody help me? Or should I rather post this to emacs.help?

If all you want to do is calling make in the directory of the master
file, the following code should work:

(eval-after-load "tex"
  '(add-to-list 'TeX-command-list '("Make" "make" TeX-run-command nil t)))

This adds a "Make" command to `TeX-command-list' which you can choose
after typing `C-c C-c'.  If it should be the default for the files in
this project, add a line like
%%% TeX-command-default: "Make"
to each relevant local variables stanza.

-- 
Ralf


_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to