From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Thu, 4 May 2006 22:55:28 +0200 Message-ID: <17498.27200.911709.330947@parhasard.net> References: <17491.34779.959316.484740@parhasard.net> <87odyfnqcj.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1146776047 12986 80.91.229.2 (4 May 2006 20:54:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 May 2006 20:54:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 04 22:53:59 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 1Fbkpb-0008Sa-SV for ged-emacs-devel@m.gmane.org; Thu, 04 May 2006 22:53:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fbkpb-0002Er-EG for ged-emacs-devel@m.gmane.org; Thu, 04 May 2006 16:53:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FbkpQ-0002Ei-S5 for emacs-devel@gnu.org; Thu, 04 May 2006 16:53:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FbkpP-0002EW-5x for emacs-devel@gnu.org; Thu, 04 May 2006 16:53:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbkpO-0002ET-VI for emacs-devel@gnu.org; Thu, 04 May 2006 16:53:38 -0400 Original-Received: from [66.111.49.30] (helo=icarus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FbkpM-000797-AY; Thu, 04 May 2006 16:53:36 -0400 Original-Received: by icarus.asclepian.ie (Postfix, from userid 1003) id ADCCA8008D; Thu, 4 May 2006 21:53:33 +0100 (IST) Original-To: Eli Zaretskii In-Reply-To: X-Mailer: VM 7.17 under 21.5 (beta26) "endive" (+CVS-20060429) XEmacs Lucid X-NS5-file-as-sent: t X-Echelon-distraction: Delta Force Mossad Ortega Qaddafi bomb fissionable 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:53927 Archived-At: Ar an ceathr=FA l=E1 de m=ED Bealtaine, scr=EDobh Eli Zaretskii>:=20 > > > I think we should treat them as much as possible consistently with > > > the rest of the treatment of unicode chars. If we start down the > > > path of "OK, we can do it like this for those chars but not these,= oh > > > and as for those ones over there, we'll do it yet some other way",= I > > > think we're headed for headaches with no real benefit. > >=20 > > I agree. >=20 > 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): (let ((our-test-file-name "/tmp/testing-byte-compile.el")) (let ((coding-system-for-write 'iso-8859-1)) (set-buffer (get-buffer-create our-test-file-name)) (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) "))\n" " (message (format \"\%c maps to \%s\n\" our-char " "(split-char our-char)))))\n")) (write-file our-test-file-name nil) (kill-buffer (current-buffer))) (utf-translate-cjk-mode 1) (byte-compile-file our-test-file-name) (load-file (concat our-test-file-name "c"))=20 (describe-our-string) (delete-file (concat our-test-file-name "c"))=20 (utf-translate-cjk-mode 0) ;; The following byte compilation fails for me; error ;; Compiling file /tmp/testing-byte-compile.el at Thu May 4 22:49:00 2= 006 ;; testing-byte-compile.el:4:1:Error: Invalid read syntax: "?" ;;=20 (byte-compile-file our-test-file-name) (load-file (concat our-test-file-name "c"))=20 (describe-our-string)) --=20 Aidan Kehoe, http://www.parhasard.net/