/[emacs]/emacs/lisp/textmodes/tex-mode.el
ViewVC logotype

Diff of /emacs/lisp/textmodes/tex-mode.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.150 by monnier, Mon Oct 25 20:35:24 2004 UTC revision 1.151 by rost, Wed Dec 1 04:08:15 2004 UTC
# Line 1693  of the current buffer." Line 1693  of the current buffer."
1693    (let* ((file (or tex-main-file    (let* ((file (or tex-main-file
1694                     ;; Compatibility with AUCTeX.                     ;; Compatibility with AUCTeX.
1695                     (with-no-warnings                     (with-no-warnings
1696                      (when (and (boundp 'TeX-master) (stringp TeX-master))                      (when (boundp 'TeX-master)
1697                        (make-local-variable 'tex-main-file)                        (cond ((stringp TeX-master)
1698                        (setq tex-main-file TeX-master)))                               (make-local-variable 'tex-main-file)
1699                                 (setq tex-main-file TeX-master))
1700                                ((and (eq TeX-master t) buffer-file-name)
1701                                 (file-relative-name buffer-file-name)))))
1702                     ;; Try to guess the main file.                     ;; Try to guess the main file.
1703                     (if (not buffer-file-name)                     (if (not buffer-file-name)
1704                         (error "Buffer is not associated with any file")                         (error "Buffer is not associated with any file")

Legend:
Removed from v.1.150  
changed lines
  Added in v.1.151

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26