Mercurial > emacs
diff lisp/international/latexenc.el @ 63084:33bc4355d988
(latexenc-find-file-coding-system):
Undo part of last patch, to turn off a compiler warning.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 06 Jun 2005 18:13:21 +0000 |
parents | ecfed70e0c5c |
children | 81d7efcce2ff |
line wrap: on
line diff
--- a/lisp/international/latexenc.el Mon Jun 06 16:28:26 2005 +0000 +++ b/lisp/international/latexenc.el Mon Jun 06 18:13:21 2005 +0000 @@ -159,10 +159,11 @@ (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)))) + (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))