Mercurial > emacs
diff lisp/international/latexenc.el @ 68356:d6c3138b1287
(latexenc-find-file-coding-system): Add file-regular-p check.
author | Reiner Steib <Reiner.Steib@gmx.de> |
---|---|
date | Mon, 23 Jan 2006 14:26:02 +0000 |
parents | 47d2cf396650 |
children | 0927d6785ca7 |
line wrap: on
line diff
--- a/lisp/international/latexenc.el Mon Jan 23 13:54:37 2006 +0000 +++ b/lisp/international/latexenc.el Mon Jan 23 14:26:02 2006 +0000 @@ -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 @@ (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)