From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [Bug] Issues with format.el: coding system, byte/char confusi on Date: Wed, 9 Apr 2003 14:37:10 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304090537.OAA15777@etlken.m17n.org> References: <67B8CED503F3D511BB9F0008C75DAD6605485571@dewdfx17> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1049866710 4414 80.91.224.249 (9 Apr 2003 05:38:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2003 05:38:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Apr 09 07:38:27 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1938Hz-00018k-00 for ; Wed, 09 Apr 2003 07:38:27 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1938MK-0006i6-00 for ; Wed, 09 Apr 2003 07:42:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1938Hy-0006m7-09 for emacs-devel@quimby.gnus.org; Wed, 09 Apr 2003 01:38:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1938HH-0006Jl-00 for emacs-devel@gnu.org; Wed, 09 Apr 2003 01:37:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1938H1-0005uS-00 for emacs-devel@gnu.org; Wed, 09 Apr 2003 01:37:27 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1938Gs-0005Yo-00; Wed, 09 Apr 2003 01:37:18 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h395bAo11768; Wed, 9 Apr 2003 14:37:10 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h395bAA28716; Wed, 9 Apr 2003 14:37:10 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id OAA15777; Wed, 9 Apr 2003 14:37:10 +0900 (JST) Original-To: christoph.wedler@sap.com In-reply-to: <67B8CED503F3D511BB9F0008C75DAD6605485571@dewdfx17> (christoph.wedler@sap.com) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Original-cc: rms@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13063 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13063 In article <67B8CED503F3D511BB9F0008C75DAD6605485571@dewdfx17>, "Wedler, Christoph" writes: > I also don't think that the order is correct (if > after-insert-file-set-buffer-file-coding-system doesn't do much, it > might not matter): since the `buffer-file-coding-system' is used to save > the RESULT of the format encode functions, it must be determined BEFORE > the format-decode functions have been executed. I agree. >> Is there any real example where this question arises, or is it >> purely hypothetical. > I'm not sure since I don't know what > `after-insert-file-set-buffer-file-coding-system' does exactly (is it > more than eol-type handling?). The task of that function are: (1) Set buffer-file-coding-system according to the current value and last-coding-system-used. (2) If a file is visited by no-conversion or raw-text, set the buffer unibyte. So, as far as format-decode or any other functions in the hook don't pay attention to buffer-file-coding-system or enable-multibyte-characters, we can do the task in any order. But, conceptually it should be done before running any other Lisp code. --- Ken'ichi HANDA handa@m17n.org