emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/international/latexenc.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/international/latexenc.el
Date: Mon, 06 Jun 2005 14:13:23 -0400

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))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]