mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(tex-main-file): Use with-no-warnings.
This commit is contained in:
parent
7461dcb0fd
commit
96c0d9e953
1 changed files with 4 additions and 2 deletions
|
|
@ -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))
|
||||
(with-no-warnings
|
||||
(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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue