Index: lisp/ChangeLog =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/ChangeLog,v retrieving revision 1.9010 diff -u -p -r1.9010 ChangeLog --- lisp/ChangeLog 22 Jan 2006 16:24:53 -0000 1.9010 +++ lisp/ChangeLog 22 Jan 2006 17:21:10 -0000 @@ -1,3 +1,8 @@ +2006-01-22 Arne J,Ax(Brgensen + + * international/latexenc.el (latexenc-find-file-coding-system): + Only try to read TeX-master if it is a regular file. + 2006-01-22 Andre Spiegel * vc-rcs.el (vc-rcs-state-heuristic): Use file-attributes with Index: lisp/international/latexenc.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/international/latexenc.el,v retrieving revision 1.11 diff -u -p -r1.11 latexenc.el --- lisp/international/latexenc.el 2 Dec 2005 13:24:11 -0000 1.11 +++ lisp/international/latexenc.el 22 Jan 2006 17:21:14 -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 ;; Keywords: mule, coding system, latex @@ -167,6 +167,7 @@ coding system names is determined from ` (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)