Function: TeX-dwim-master

TeX-dwim-master is a byte-compiled function defined in tex.el.

Signature

(TeX-dwim-master)

Documentation

Find a likely TeX-master.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-dwim-master ()
  "Find a likely `TeX-master'."
  (let ((dir default-directory))
    (cl-loop for buf in (buffer-list)
             until
             (when (with-current-buffer buf
                     (and (equal dir default-directory)
                          (stringp TeX-master)))
               (cl-return (with-current-buffer buf TeX-master))))))