From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: "Stefan Monnier" 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 09:59:07 -0500 Message-ID: <200202251459.g1PEx7O16870@rum.cs.yale.edu> References: NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1014649413 13503 195.204.10.66 (25 Feb 2002 15:03:33 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 25 Feb 2002 15:03:33 GMT Cc: Stefan Monnier , 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 16fMf6-0003Vg-00 for ; Mon, 25 Feb 2002 16:03:32 +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 16fMc5-0008Fn-00; Mon, 25 Feb 2002 10:00:25 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16fMb9-0007wo-00; Mon, 25 Feb 2002 09:59:27 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g1PEx7O16870; Mon, 25 Feb 2002 09:59:07 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Eli Zaretskii 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:1526 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1526 > > 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? I don't think it matters since both options can make sense depending on the context. Prompting the user is another option. Stefan _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel