From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [simon.marshall@misys.com: FW: [21.1.90]: should coding be recalculated on revert-buffer?] Date: Tue, 26 Feb 2002 22:50:56 -0700 (MST) Message-ID: <200202270550.g1R5ouh17611@aztec.santafe.edu> References: <200202262013.g1QKDo516704@aztec.santafe.edu> <4098-Tue26Feb2002224400+0200-eliz@is.elta.co.il> Reply-To: rms@gnu.org NNTP-Posting-Host: quimby2.netfonds.no X-Trace: quimby2.netfonds.no 1014789398 15827 195.204.10.66 (27 Feb 2002 05:56:38 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 27 Feb 2002 05:56:38 GMT Cc: eliz@is.elta.co.il, miles@gnu.org, handa@etl.go.jp, 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 16fx4w-000476-00 for ; Wed, 27 Feb 2002 06:56:38 +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 16fx1I-0003so-00; Wed, 27 Feb 2002 00:52:52 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16fwzS-0003Y9-00; Wed, 27 Feb 2002 00:50:58 -0500 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g1R5p2u12211; Tue, 26 Feb 2002 22:51:02 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g1R5ouh17611; Tue, 26 Feb 2002 22:50:56 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: schwab@suse.de In-reply-to: (message from Andreas Schwab on Tue, 26 Feb 2002 23:44:39 +0100) 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:1577 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1577 How about just setting buffer-file-coding-system to last-coding-system-used in revert-buffer if coding-system-for-read is non-nil? This way you can use `C-x RET c undecided' to force re-detection. I think your change should be made, but revert-file should autodetect when you do not specify a coding system in this way. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel