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 20:42:08 +0200 Message-ID: References: <17491.34779.959316.484740@parhasard.net> <87odyfnqcj.fsf-monnier+emacs@gnu.org> <17498.27200.911709.330947@parhasard.net> <17499.39572.251467.969570@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 1146854680 30704 80.91.229.2 (5 May 2006 18:44:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 18:44:40 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 05 20:44:39 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 1Fc5I1-0005J1-Oo for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 20:44:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc5I1-00049I-9U for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 14:44:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fc5Hl-00046q-Vi for emacs-devel@gnu.org; Fri, 05 May 2006 14:44:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fc5Hj-00046Q-TF for emacs-devel@gnu.org; Fri, 05 May 2006 14:44:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc5Hj-00046F-LO for emacs-devel@gnu.org; Fri, 05 May 2006 14:44:15 -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 1Fc5Hw-0003PI-ED for emacs-devel@gnu.org; Fri, 05 May 2006 14:44:28 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fc5H8-000557-6n for emacs-devel@gnu.org; Fri, 05 May 2006 20:43:39 +0200 Original-Received: from dslb-084-058-191-070.pools.arcor-ip.net ([84.58.191.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 May 2006 20:43:38 +0200 Original-Received: from alkibiades by dslb-084-058-191-070.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 May 2006 20:43:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 45 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-058-191-070.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:53962 Archived-At: Aidan Kehoe writes: > Ar an cúigiú lá de mí Bealtaine, scríobh Oliver Scholz>: > > > > > What happens when a Lisp file is byte-compiled--do we want the result > > > > to depend on the local settings? > > > > [...] > > > > > 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. > > It byte compiles a file, changes a local setting, and byte-compiles the file > again with a different result. That is relevant to Eli’s question. Sure, and I can put (eval-after-load "bytecomp" '(fset 'byte-compile-file (lambda (&rest ignore) (error "lirum larum")))) into my .emacs and bytecompiling will also yield different results depending on local setting. I guess that would also be relevant here. Oliver -- 16 Floréal an 214 de la Révolution Liberté, Egalité, Fraternité!