From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: latexenc and `TeX-master' Date: Mon, 23 Jan 2006 09:54:00 +0000 Message-ID: <7F98F161-442F-40A7-9F67-563168439D3B@gmail.com> References: <86169402-381A-4DAD-AF54-72DE99CD1959@gmail.com> <87y818z6fp.fsf@arnested.dk> <878xt8uqk9.fsf@arnested.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1138047798 16857 80.91.229.2 (23 Jan 2006 20:23:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2006 20:23:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 23 21:23:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F18Dc-0004bj-BP for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2006 21:23:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F17EB-0001Fh-OH for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2006 14:19:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F15Sz-0000QD-6w for emacs-devel@gnu.org; Mon, 23 Jan 2006 12:26:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F15Sq-0000MP-2y for emacs-devel@gnu.org; Mon, 23 Jan 2006 12:26:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F15So-0000M0-VX for emacs-devel@gnu.org; Mon, 23 Jan 2006 12:26:47 -0500 Original-Received: from [64.233.162.205] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F15Xa-0001rw-0j for emacs-devel@gnu.org; Mon, 23 Jan 2006 12:31:42 -0500 Original-Received: by zproxy.gmail.com with SMTP id n1so1118484nzf for ; Mon, 23 Jan 2006 09:23:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=R0OUrMmPu58jAX3ZJV4IeC50n+k/dnazDFLVMhVwvYKwLCuPkKxgSYjdbwMltmEtXaix1oNyZw0Nw8QufTFPfA2Tlpw5Dy0j5nKCW3rN221ZaGhy9tBoKB2AuugMoX0znZTM7j/N6slApXAYnD3tNAmI9LzFLZXWV4WAurYivsM= Original-Received: by 10.64.47.12 with SMTP id u12mr219867qbu; Mon, 23 Jan 2006 01:54:06 -0800 (PST) Original-Received: from ?10.0.0.100? ( [82.41.74.89]) by mx.gmail.com with ESMTP id a29sm1337488qbd.2006.01.23.01.54.04; Mon, 23 Jan 2006 01:54:05 -0800 (PST) In-Reply-To: <878xt8uqk9.fsf@arnested.dk> Original-To: Emacs-Devel ' X-Mailer: Apple Mail (2.746.2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49447 Archived-At: On 22 Jan 2006, at 17:21, Arne J=F8rgensen wrote: > Arne J=F8rgensen 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. yes, I agree. The second change (below) should catch all other cases. *** latexenc.el 02 Dec 2005 13:24:11 +0000 1.11 --- latexenc.el 22 Jan 2006 08:52:12 +0000=09 *************** *** 174,180 **** (find-file-noselect latexenc-main-file t))) (coding-system-base ;Disregard the EOL part of =20= the CS. (with-current-buffer latexenc-main-buffer ! (or coding-system-for-write buffer-file-coding-=20= system)))) 'undecided)))) 'undecided)) --- 175,183 ---- (find-file-noselect latexenc-main-file t))) (coding-system-base ;Disregard the EOL part of =20= the CS. (with-current-buffer latexenc-main-buffer ! (or coding-system-for-write ! buffer-file-coding-system ! 'undecided)))) 'undecided)))) 'undecided))