Commit 96c0d9e9 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(tex-main-file): Use with-no-warnings.

parent 7461dcb0
......@@ -1651,8 +1651,10 @@ of the current buffer."
"Return the relative name of the main file."
(let* ((file (or tex-main-file
;; Compatibility with AUCTeX.
(and (boundp 'TeX-master) (stringp TeX-master)
(set (make-local-variable 'tex-main-file) TeX-master))
(when (and (boundp 'TeX-master) (stringp TeX-master))
(make-local-variable 'tex-main-file)
(setq tex-main-file TeX-master)))
;; Try to guess the main file.
(if (not buffer-file-name)
(error "Buffer is not associated with any file")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment