Function: TeX-active-master
TeX-active-master is a byte-compiled function defined in tex.el.
Signature
(TeX-active-master &optional EXTENSION NONDIRECTORY IGNORE)
Documentation
The master file currently being compiled.
If optional argument EXTENSION is non-nil, add that file extension to
the name. Special value t means use TeX-default-extension.
If optional second argument NONDIRECTORY is non-nil, do not include the directory.
The compatibility argument IGNORE is ignored.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-active-master (&optional extension nondirectory _ignore)
"The master file currently being compiled.
If optional argument EXTENSION is non-nil, add that file extension to
the name. Special value t means use `TeX-default-extension'.
If optional second argument NONDIRECTORY is non-nil, do not include
the directory.
The compatibility argument IGNORE is ignored."
;; The third argument `_ignore' is kept for symmetry with
;; `TeX-master-file's third argument `ask'. For example, it's used
;; in `TeX-active-master-with-quotes' for backward compatibility.
;; Keep this in mind should you want to use another argument here.
;; See also the similar comment in `TeX-region-file'.
(if TeX-current-process-region-p
(TeX-region-file extension nondirectory)
(TeX-master-file extension nondirectory)))