From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: revert-buffer and changes in encoding Date: Sat, 01 Jan 2005 16:28:55 -0500 Message-ID: References: <200412301244.VAA28792@etlken.m17n.org> <200412302352.IAA00037@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1104615077 30157 80.91.229.6 (1 Jan 2005 21:31:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 1 Jan 2005 21:31:17 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 01 22:31:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ckqq2-0003lU-00 for ; Sat, 01 Jan 2005 22:31:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Ckr16-0001Sh-TB for ged-emacs-devel@m.gmane.org; Sat, 01 Jan 2005 16:42:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Ckr0r-0001Pd-Bk for emacs-devel@gnu.org; Sat, 01 Jan 2005 16:42:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Ckr0o-0001O8-Ud for emacs-devel@gnu.org; Sat, 01 Jan 2005 16:42:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Ckr0o-0001NP-L3 for emacs-devel@gnu.org; Sat, 01 Jan 2005 16:42:14 -0500 Original-Received: from [206.47.199.141] (helo=simmts12-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ckqo1-0001XR-Gy; Sat, 01 Jan 2005 16:29:01 -0500 Original-Received: from empanada.home ([67.71.119.166]) by simmts12-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050101212856.QIUZ1542.simmts12-srv.bellnexxia.net@empanada.home>; Sat, 1 Jan 2005 16:28:56 -0500 Original-Received: by empanada.home (Postfix, from userid 502) id AA7483C98F3; Sat, 1 Jan 2005 16:28:55 -0500 (EST) Original-To: Kenichi Handa In-Reply-To: <200412302352.IAA00037@etlken.m17n.org> (Kenichi Handa's message of "Fri, 31 Dec 2004 08:52:40 +0900 (JST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) 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: main.gmane.org gmane.emacs.devel:31668 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31668 >> Is that right? Wouldn't that get automatically-chosen coding systems >> as well as explicit user-specified coding systems? > Yes. But, whatever coding system is used for writing a > file, revert-buffer should read the file with the same > coding system. But then the name you chose is wrong. If the name is "foobar-explicit" it should only be non-nil if foobar was set explicitly, not automatically. Knowing when buffer-file-coding-system was set explicitly is important also in select-safe-coding-system (where it should not try any other cs, including the preferred cs). Stefan