diff options
author | Reiner Steib <Reiner.Steib@gmx.de> | 2006-01-23 14:26:02 +0000 |
---|---|---|
committer | Reiner Steib <Reiner.Steib@gmx.de> | 2006-01-23 14:26:02 +0000 |
commit | e450a16a1428cc06220a377802d9e7db9d87ce28 (patch) | |
tree | 9db077fdd752600602f81cf0156b1bb101e8bc24 /lisp/international | |
parent | af71d4c04d544a18de2e269a7d4981254c07ab63 (diff) | |
download | emacs-e450a16a1428cc06220a377802d9e7db9d87ce28.tar.gz |
(latexenc-find-file-coding-system): Add file-regular-p check.
Diffstat (limited to 'lisp/international')
-rw-r--r-- | lisp/international/latexenc.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/international/latexenc.el b/lisp/international/latexenc.el index 51d70faf76c..17a9df20843 100644 --- a/lisp/international/latexenc.el +++ b/lisp/international/latexenc.el @@ -1,6 +1,6 @@ ;;; latexenc.el --- guess correct coding system in LaTeX files -;; Copyright (C) 2005 Free Software Foundation, Inc. +;; Copyright (C) 2005, 2006 Free Software Foundation, Inc. ;; Author: Arne J,Ax(Brgensen <arne@arnested.dk> ;; Keywords: mule, coding system, latex @@ -167,6 +167,7 @@ coding system names is determined from `latex-inputenc-coding-alist'." (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-regular-p latexenc-main-file) (file-readable-p latexenc-main-file)) (let* ((latexenc-dont-use-tex-guess-main-file-flag t) (latexenc-dont-use-TeX-master-flag t) |