auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] add to a key stroke: texify --tex-opt=--src --quiet %t"


From: Stefan Pofahl
Subject: Re: [AUCTeX] add to a key stroke: texify --tex-opt=--src --quiet %t"
Date: Mon, 05 Sep 2005 10:58:57 +0200

On 5 Sep 2005 at 10:23, Ralf Angeli wrote:

> > But 
> > (TeX-command "Texify" 'TeX-master-file)
> > and 
> > (TeX-command "Texify" 'TeX-region-file)
> > work both.
> > What is to do?
> 
> What's the problem with using the `TeX-master-file' option?
> 
> -- 
> Ralf
The variable %t is changing it's value, when you change from
master-file to buffer or region, this is a nice feature.
The variable `TeX-active-buffer' should be the same as %t,
but I don't know how to use it.

`TeX-active-buffer' is defined in tex-buf.el:
;;;; tex-buf.el
;;; Active Process

(defvar TeX-current-process-region-p nil
  "This variable is set to t iff the last TeX command is on a 
region.")
[...]
(defun TeX-active-buffer ()
  "Return the buffer of the active process for this buffer."
  (if TeX-current-process-region-p
      (TeX-process-buffer (TeX-region-file))
    (TeX-process-buffer (TeX-master-file))))
--
Regards, Stefan





reply via email to

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