From: "Arne Jørgensen" <arne@arnested.dk>
Subject: Re: latexenc and `TeX-master'
Date: Sun, 22 Jan 2006 18:21:10 +0100 [thread overview]
Message-ID: <878xt8uqk9.fsf@arnested.dk> (raw)
In-Reply-To: 87y818z6fp.fsf@arnested.dk
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
Arne Jørgensen <arne@arnested.dk> 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/>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: latexenc.patch --]
[-- Type: text/x-patch, Size: 1746 bytes --]
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 <arne@arnested.dk>
+
+ * 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 <spiegel@gnu.org>
* 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 <arne@arnested.dk>
;; 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)
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2006-01-22 17:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-22 8:58 latexenc and `TeX-master' David Reitter
2006-01-22 14:24 ` Arne Jørgensen
2006-01-22 17:21 ` Arne Jørgensen [this message]
2006-01-23 9:54 ` David Reitter
2006-01-23 23:04 ` Arne Jørgensen
2006-01-23 14:31 ` Reiner Steib
2006-01-23 14:53 ` Arne Jørgensen
2006-01-22 14:26 ` Arne Jørgensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878xt8uqk9.fsf@arnested.dk \
--to=arne@arnested.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).