From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Encoding for auto-save files Date: Tue, 07 May 2002 19:33:50 +0300 Sender: emacs-devel-admin@gnu.org Message-ID: <1858-Tue07May2002193350+0300-eliz@is.elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1020789604 24157 127.0.0.1 (7 May 2002 16:40:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 May 2002 16:40:04 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17580S-0006HP-00 for ; Tue, 07 May 2002 18:40:04 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17588A-0001nq-00 for ; Tue, 07 May 2002 18:48:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17580Q-0003el-00; Tue, 07 May 2002 12:40:02 -0400 Original-Received: from frigg.inter.net.il ([192.114.186.16]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1757yF-0003O3-00 for ; Tue, 07 May 2002 12:37:47 -0400 Original-Received: from Zaretsky ([80.230.2.40]) by frigg.inter.net.il (Mirapoint Messaging Server MOS 3.1.0.54-GA) with ESMTP id BKH54197; Tue, 7 May 2002 19:34:40 +0300 (IDT) Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3676 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3676 > From: Kai.Grossjohann@CS.Uni-Dortmund.DE > Date: Tue, 07 May 2002 17:47:10 +0200 > > Emacs always uses emacs-mule for saving auto-save files. In case a > user happens to use C-x C-f on an auto-save file, shouldn't Emacs use > emacs-mule, too? "M-x recover-file" already does that. As for "C-x C-f", Emacs just treats #foo# as any other file, and does its usual encoding-detection guesswork. Since emacs-mule is very low on the priority list of that guesswork, you almost always get something that isn't emacs-mule. However, if we are sure that files whose names match the pattern "\\(\\`\\|/\\)#.+#\\'" are mostly Emacs auto-save files, I think it's a good idea to add an appropriate association to file-coding-system-alist defined on mule-conf.el.