[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for tex-mode.el (more compatibility with AUCTeX)
From: |
Richard Stallman |
Subject: |
Re: Patch for tex-mode.el (more compatibility with AUCTeX) |
Date: |
Mon, 29 Nov 2004 01:11:12 -0500 |
Wouldn't this patch be a more natural way to handle TeX-master = t?
*** tex-mode.el 26 Oct 2004 04:21:48 -0400 1.150
--- tex-mode.el 28 Nov 2004 16:19:05 -0500
***************
*** 1693,1701 ****
(let* ((file (or tex-main-file
;; Compatibility with AUCTeX.
(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")
--- 1693,1705 ----
(let* ((file (or tex-main-file
;; Compatibility with AUCTeX.
(with-no-warnings
! (when (boundp 'TeX-master)
! (if (stringp TeX-master)
! (progn
! (make-local-variable 'tex-main-file)
! (setq tex-main-file TeX-master))
! (when (eq TeX-master t)
! (file-relative-name buffer-file-name)))))
;; Try to guess the main file.
(if (not buffer-file-name)
(error "Buffer is not associated with any file")