[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: latexenc and `TeX-master'
From: |
Arne Jørgensen |
Subject: |
Re: latexenc and `TeX-master' |
Date: |
Sun, 22 Jan 2006 18:21:10 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Arne Jørgensen <address@hidden> writes:
> But it is probably better to check if the file is a regular and then
> also check if it is actually readable.
Readability is already checked later in the code. Checking whether the
file is a regular file is also better checked at that point.
New patch is attached.
Kind regards
/arne
--
Arne Jørgensen <http://arnested.dk/>
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 <address@hidden>
+
+ * 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 <address@hidden>
* 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 <address@hidden>
;; 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)
Re: latexenc and `TeX-master', Arne Jørgensen, 2006/01/22