Index: emacs/lisp/international/latexenc.el
diff -c emacs/lisp/international/latexenc.el:1.6
emacs/lisp/international/latexenc.el:1.7
*** emacs/lisp/international/latexenc.el:1.6 Fri Jun 3 14:37:04 2005
--- emacs/lisp/international/latexenc.el Mon Jun 6 18:13:21 2005
***************
*** 159,168 ****
(setq latexenc-main-file (concat file ext)))))))
;; try tex-modes tex-guess-main-file
(when (and (not latexenc-dont-use-tex-guess-main-file-flag)
! (not latexenc-main-file)
! (fboundp 'tex-guess-main-file))
! (let ((tex-start-of-header "\\\\document\\(style\\|class\\)"))
! (setq latexenc-main-file (tex-guess-main-file))))
;; if we found a master/main file get the coding system from it
(if (and latexenc-main-file
(file-readable-p latexenc-main-file))
--- 159,169 ----
(setq latexenc-main-file (concat file ext)))))))
;; try tex-modes tex-guess-main-file
(when (and (not latexenc-dont-use-tex-guess-main-file-flag)
! (not latexenc-main-file))
! ;; Use a separate `when' so the byte-compiler sees the fboundp.
! (when (fboundp 'tex-guess-main-file)
! (let ((tex-start-of-header "\\\\document\\(style\\|class\\)"))
! (setq latexenc-main-file (tex-guess-main-file)))))
;; if we found a master/main file get the coding system from it
(if (and latexenc-main-file
(file-readable-p latexenc-main-file))
_______________________________________________
Emacs-diffs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-diffs