summaryrefslogtreecommitdiff
path: root/lisp/international
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2005-06-06 18:13:21 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2005-06-06 18:13:21 +0000
commited975fa61af284173b5490cdc119484c6a200ce3 (patch)
tree71187875bb664552b3a5a9fd0d3536a1161e8546 /lisp/international
parente43cbeae69c62d0fd1de362cdf154623322ad059 (diff)
(latexenc-find-file-coding-system):
Undo part of last patch, to turn off a compiler warning.
Diffstat (limited to 'lisp/international')
-rw-r--r--lisp/international/latexenc.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/international/latexenc.el b/lisp/international/latexenc.el
index 24f7ebc6000..7568c4aa39a 100644
--- a/lisp/international/latexenc.el
+++ b/lisp/international/latexenc.el
@@ -159,10 +159,11 @@ coding system names is determined from `latex-inputenc-coding-alist'."
(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))