From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Mon, 08 May 2006 10:14:02 +0900 Message-ID: References: <17491.34779.959316.484740@parhasard.net> <87odyfnqcj.fsf-monnier+emacs@gnu.org> <17498.27200.911709.330947@parhasard.net> <877j4z5had.fsf@gmx.de> <87irohfrx1.fsf@gmx.de> 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: sea.gmane.org 1147050945 9494 80.91.229.2 (8 May 2006 01:15:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 May 2006 01:15:45 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, alkibiades@gmx.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 08 03:15:43 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FcuLa-0003o2-Iu for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 03:15:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FcuLZ-0005ZD-Ty for ged-emacs-devel@m.gmane.org; Sun, 07 May 2006 21:15:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FcuKJ-00053u-82 for emacs-devel@gnu.org; Sun, 07 May 2006 21:14:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FcuKH-00052Y-6A for emacs-devel@gnu.org; Sun, 07 May 2006 21:14:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FcuKH-00052O-1L for emacs-devel@gnu.org; Sun, 07 May 2006 21:14:17 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FcuKs-0001SU-DW; Sun, 07 May 2006 21:14:54 -0400 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k481E2p2006398; Mon, 8 May 2006 10:14:02 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k481E29U009583; Mon, 8 May 2006 10:14:02 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FcuK1-0007eL-00; Mon, 08 May 2006 10:14:02 +0900 Original-To: Oliver Scholz In-reply-to: <87irohfrx1.fsf@gmx.de> (message from Oliver Scholz on Sun, 07 May 2006 23:26:02 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54048 Archived-At: In article <87irohfrx1.fsf@gmx.de>, Oliver Scholz writes: >> (progn >> (let ((str "(setq x \"\300\300\")\n") >> (coding-system-for-write 'no-conversion)) >> (write-region str nil "~/test1.el") >> (write-region str nil "~/test2.el")) >> (set-language-environment "Latin-1") >> (byte-compile-file "~/test1.el") >> (set-language-environment "Japanese") >> (byte-compile-file "~/test2.el")) > That's not exactly what I meant. This happens basically because Emacs > has no indication on how to decode that file properly. Here's a test > case for what I had in mind: The underlining problem is the same. In your test case also, even if you put coding: tags, the exact decoding varies depending on many other things, and thus resulting *.elc are different. [...] > As Richard wrote, the fix would be to change the settings to > their default, unless the files set a specific variable. Then you'll get different results in these two cases: (1) visit *.el and M-x eval-current-buffer (2) byte-compile *.el and load *.elc. I think that is more like a bug. > But given the work this would require and given that the value of > changing the defaults is IMO somewhat dubious, you could as well > just document it in etc/PROBLEMS. I agree that is the best solution. --- Kenichi Handa handa@m17n.org