From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [simon.marshall@misys.com: FW: [21.1.90]: should coding be recalculated on revert-buffer?] Date: Mon, 25 Feb 2002 12:03:28 +0200 (IST) Message-ID: NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: quimby2.netfonds.no 1014632064 2235 195.204.10.66 (25 Feb 2002 10:14:24 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 25 Feb 2002 10:14:24 GMT Cc: Kenichi Handa , rms@gnu.org, emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16fI9H-0000Zx-00 for ; Mon, 25 Feb 2002 11:14:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16fI1a-0002I9-00; Mon, 25 Feb 2002 05:06:26 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16fHzc-0002Eu-00; Mon, 25 Feb 2002 05:04:24 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id MAA01598; Mon, 25 Feb 2002 12:03:28 +0200 (IST) X-Sender: eliz@is Original-To: Stefan Monnier In-Reply-To: <200202250724.g1P7OVR14692@rum.cs.yale.edu> Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1517 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1517 On Mon, 25 Feb 2002, Stefan Monnier wrote: > Looks like we should remember whether the current coding-system was > automatically inferred or whether it was explicitly specified. I'm not sure it's enough. Imagine the following sequence of commands: C-x RET c latin-2 RET C-x C-f some-file RET M-! cat some-file | recode latin-2..utf-8 > some-file RET M-x revert-buffer RET Here the user visited the file with Latin-2, then changed the file's encoding on disk into UTF-8, then reverted the buffer. Should Emacs autodetect in this case or not? _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel