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 11:56:02 +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 1014631215 1802 195.204.10.66 (25 Feb 2002 10:00:15 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 25 Feb 2002 10:00:15 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 16fHva-0000Sy-00 for ; Mon, 25 Feb 2002 11:00:14 +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 16fHsi-00024D-00; Mon, 25 Feb 2002 04:57:16 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16fHsM-00023U-00; Mon, 25 Feb 2002 04:56:54 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id LAA01534; Mon, 25 Feb 2002 11:56:02 +0200 (IST) X-Sender: eliz@is Original-To: Miles Bader In-Reply-To: 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:1516 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1516 On 25 Feb 2002, Miles Bader wrote: > > And, it's difficult to distinguish the above two cases. > > Couldn't you set a buffer-local flag to true if the coding is > auto-detected (which `C-x C-m c' & friends would then set to false), > and then only re-detect the coding system upon rever if the flag was true? Are you suggesting to do this inside insert-file-contents? If so, I'd advise against it: insert-file-contents is used in many commands, each one with its special expectations about what's The Right Thing to do in this situation, so changing that on the primitive level runs a high risk of breaking something. It might be okay to do that inside revert-buffer, but even then I'd suggest to do it only for the EOL format, not for the base of the coding system, to keep the possible unintended consequences to a minimum. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel