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: Fri, 5 May 2006 21:57:13 +0200 Message-ID: <17499.44569.825194.210709@parhasard.net> References: <17491.34779.959316.484740@parhasard.net> <87odyfnqcj.fsf-monnier+emacs@gnu.org> <17498.11949.75640.41779@parhasard.net> <17499.42393.597479.46003@parhasard.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1146859061 12311 80.91.229.2 (5 May 2006 19:57:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 19:57:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 05 21:57: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 1Fc6Qe-00015y-AF for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 21:57:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc6Qd-0000cs-Lf for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 15:57:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fc6QS-0000cb-4c for emacs-devel@gnu.org; Fri, 05 May 2006 15:57:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fc6QP-0000cH-Kn for emacs-devel@gnu.org; Fri, 05 May 2006 15:57:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc6QP-0000bv-EA for emacs-devel@gnu.org; Fri, 05 May 2006 15:57:17 -0400 Original-Received: from [66.111.49.30] (helo=icarus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fc6Qc-0001MH-8n; Fri, 05 May 2006 15:57:30 -0400 Original-Received: by icarus.asclepian.ie (Postfix, from userid 1003) id 740488008D; Fri, 5 May 2006 20:57:15 +0100 (IST) Original-To: rms@gnu.org, In-Reply-To: <17499.42393.597479.46003@parhasard.net> X-Mailer: VM 7.17 under 21.5 (beta25) "eggplant" (+CVS-20060325) XEmacs Lucid X-Echelon-distraction: BLU-114/B BIOL filofax site NMI buzzer 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:53973 Archived-At: Ar an c=C3=BAigi=C3=BA l=C3=A1 de m=C3=AD Bealtaine, scr=C3=ADobh Aidan = Kehoe:=20 > > [...] Thank you, but my question here is not about \u. Rather, it i= s > > about whether there are OTHER incompatibilities between Emacs Lisp = and C > > string syntax. > > > > I want to see that information before deciding what to do here. >=20 > There aren=E2=80=99t, to my knowledge, C is a pretty conservative lang= uage. GCC > and its conscientious approach to the standards is a big part of why t= hat > is so, as I understand it. Sorry, that is false. There are other incompatibilities;=20 \d in Emacs Lisp string and character syntax gives \0177 \e in Emacs Lisp string and character syntax gives \033 \M- in Emacs Lisp string and character syntax gives CHAR + #x800000= 0 \S- in Emacs Lisp string and character syntax gives CHAR + #x200000= 0 \H- in Emacs Lisp string and character syntax gives CHAR + #x100000= 0 \A- in Emacs Lisp string and character syntax gives CHAR + #x400000 \s- in Emacs Lisp string and character syntax gives CHAR + #x400000 \C- and \^ in Emacs Lisp string and character syntax gives th= e control version of CHAR, which for non-ASCII characters is CHAR + #x40000= 00 All of these are incompatibilities on the Emacs Lisp side; except for the Unicode escapes, a C programmer can use any C escape desired in Emacs Lis= p. --=20 Aidan Kehoe, http://www.parhasard.net/