Function: reftex-index-phrase-tex-master

reftex-index-phrase-tex-master is a byte-compiled function defined in reftex-index.el.gz.

Signature

(reftex-index-phrase-tex-master &optional DIR)

Documentation

Return the name of the master file associated with a phrase buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-index.el.gz
(defun reftex-index-phrase-tex-master (&optional dir)
  "Return the name of the master file associated with a phrase buffer."
  (if (and (boundp 'TeX-master)
           (local-variable-p 'TeX-master (current-buffer))
           (stringp TeX-master))
      ;; We have a local variable which tells us which file to use
      (expand-file-name TeX-master dir)
    ;; have to guess
    (concat (file-name-sans-extension (buffer-file-name)) ".tex")))