emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Unicode Lisp reader escapes


From: Aidan Kehoe
Subject: Re: [PATCH] Unicode Lisp reader escapes
Date: Fri, 5 May 2006 21:57:13 +0200

 Ar an cúigiú lá de mí Bealtaine, scríobh Aidan Kehoe: 

 >  > [...] Thank you, but my question here is not about \u. Rather, it is
 >  > 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.
 > 
 > There aren’t, to my knowledge, C is a pretty conservative language. GCC
 > and its conscientious approach to the standards is a big part of why that
 > is so, as I understand it.

Sorry, that is false. There are other incompatibilities; 

\d in Emacs Lisp string and character syntax gives \0177
\e in Emacs Lisp string and character syntax gives \033
\M-<CHAR> in Emacs Lisp string and character syntax gives CHAR + #x8000000
\S-<CHAR> in Emacs Lisp string and character syntax gives CHAR + #x2000000
\H-<CHAR> in Emacs Lisp string and character syntax gives CHAR + #x1000000
\A-<CHAR> in Emacs Lisp string and character syntax gives CHAR + #x400000
\s-<CHAR> in Emacs Lisp string and character syntax gives CHAR + #x400000
\C-<CHAR> and \^<CHAR> in Emacs Lisp string and character syntax gives the
control version of CHAR, which for non-ASCII characters is CHAR + #x4000000

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 Lisp.

-- 
Aidan Kehoe, http://www.parhasard.net/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]