From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: [simon.marshall@misys.com: FW: [21.1.90]: should coding be recalculated on revert-buffer?] Date: Wed, 27 Feb 2002 16:08:05 +0100 Message-ID: References: <200202262013.g1QKDo516704@aztec.santafe.edu> <4098-Tue26Feb2002224400+0200-eliz@is.elta.co.il> <200202270550.g1R5ouh17611@aztec.santafe.edu> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: quimby2.netfonds.no 1014822812 5535 195.204.10.66 (27 Feb 2002 15:13:32 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 27 Feb 2002 15:13:32 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 16g5lr-0001RB-00 for ; Wed, 27 Feb 2002 16:13:31 +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 16g5ho-0002bo-00; Wed, 27 Feb 2002 10:09:20 -0500 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian)) id 16g5gh-0002YH-00; Wed, 27 Feb 2002 10:08:11 -0500 Original-Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id CED421E9EA; Wed, 27 Feb 2002 16:08:09 +0100 (MET) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f Original-To: rms@gnu.org X-Yow: MERYL STREEP is my obstetrician! In-Reply-To: <200202270550.g1R5ouh17611@aztec.santafe.edu> (Richard Stallman's message of "Tue, 26 Feb 2002 22:50:56 -0700 (MST)") Original-Lines: 20 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux) 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:1598 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1598 Richard Stallman writes: |> 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. In replace mode insert-file-contents uses buffer-file-coding-system when coding-system-for-read is nil, so no autodection is done. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel