From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Fri, 05 May 2006 11:33:58 +0200 Message-ID: References: <17491.34779.959316.484740@parhasard.net> <87odyfnqcj.fsf-monnier+emacs@gnu.org> <17498.27200.911709.330947@parhasard.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1146821740 9430 80.91.229.2 (5 May 2006 09:35:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 09:35:40 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 05 11:35:38 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 1Fbwin-0002xp-Mz for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 11:35:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fbwim-0002xp-Tw for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 05:35:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FbwiY-0002vr-D4 for emacs-devel@gnu.org; Fri, 05 May 2006 05:35:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FbwiW-0002tY-Ou for emacs-devel@gnu.org; Fri, 05 May 2006 05:35:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbwiW-0002tE-LR for emacs-devel@gnu.org; Fri, 05 May 2006 05:35:20 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fbwie-000372-AH for emacs-devel@gnu.org; Fri, 05 May 2006 05:35:28 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FbwiK-0002s6-LT for emacs-devel@gnu.org; Fri, 05 May 2006 11:35:08 +0200 Original-Received: from dslb-084-058-122-176.pools.arcor-ip.net ([84.58.122.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 May 2006 11:35:08 +0200 Original-Received: from alkibiades by dslb-084-058-122-176.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 May 2006 11:35:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 50 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-058-122-176.pools.arcor-ip.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53939 Archived-At: Aidan Kehoe writes: > Ar an ceathrú lá de mí Bealtaine, scríobh Eli Zaretskii>: [...] > > What happens when a Lisp file is byte-compiled--do we want the result > > to depend on the local settings? Oy! This might be a bit more serious than what I called a "minor obscurity". I guess, you have a similar problem when the source file is encoded in either ISO 8859-5 or ISO 8859-7 (btw., what about Hewbrew, Arabic and Thai?). Unless I am much mistaken, the encoding of the characters in the .elc file would also depend on the value of `utf-fragment-on-decoding'. A difference might be that this is much more obvious in the case of a ISO 8859-[57] encoded file; and that it is more obscure and more likely to cause puzzlement in the case of a couple of letters specified with \u. I have no opinion on how serious that is. One might say, that is just one of the glitches of emacs-mule. Or maybe not. I don't know. At least I don't see a proper solution to this. > It does currently, to the extent of local settings preventing successful > compilation. Cf. this code (on Unix): [...] > (insert (concat > ";; -*- coding: utf-8 -*-\n\n" > "(require 'cl)\n\n" > "(defun describe-our-string ()\n" > " (let ((our-char ?" > (format "%c%c%c" ?\345 ?\215 ?\227) [...] > (utf-translate-cjk-mode 0) [...] > (byte-compile-file our-test-file-name) [...] I am afraid that is not relevant here. This just tells Emacs to not deal with UTF-8 encoded CJK characters and then tell it to deal with such an character. Oliver -- 16 Floréal an 214 de la Révolution Liberté, Egalité, Fraternité!