[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el
From: |
Markus Rost |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el |
Date: |
Tue, 30 Nov 2004 23:14:26 -0500 |
Index: emacs/lisp/textmodes/tex-mode.el
diff -c emacs/lisp/textmodes/tex-mode.el:1.150
emacs/lisp/textmodes/tex-mode.el:1.151
*** emacs/lisp/textmodes/tex-mode.el:1.150 Mon Oct 25 20:35:24 2004
--- emacs/lisp/textmodes/tex-mode.el Wed Dec 1 04:08:15 2004
***************
*** 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,1704 ----
(let* ((file (or tex-main-file
;; Compatibility with AUCTeX.
(with-no-warnings
! (when (boundp 'TeX-master)
! (cond ((stringp TeX-master)
! (make-local-variable 'tex-main-file)
! (setq tex-main-file TeX-master))
! ((and (eq TeX-master t) buffer-file-name)
! (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")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el,
Markus Rost <=