# HG changeset patch # User Eli Zaretskii # Date 1149876681 0 # Node ID 8f770ba8e00d1c74d9fbe9564d99572f10a482c3 # Parent ec3903b8cc2e0ccc518cbd19bd35b7ab9a0955ce (Character Type): Describe the\uABCD and \U00ABCDEF syntax. diff -r ec3903b8cc2e -r 8f770ba8e00d lispref/objects.texi --- a/lispref/objects.texi Fri Jun 09 17:59:29 2006 +0000 +++ b/lispref/objects.texi Fri Jun 09 18:11:21 2006 +0000 @@ -431,6 +431,19 @@ bit values are 2**22 for alt, 2**23 for super and 2**24 for hyper. @end ifnottex +@cindex unicode character escape + Emacs provides a syntax for specifying characters by their Unicode +code points. @code{?\u@var{nnnn}} represents a character that maps to +the Unicode code point @samp{U+@var{nnnn}}. There is a slightly +different syntax for specifying characters with code points above +@code{#xFFFF}; @code{\U00@var{nnnnnn}} represents the character whose +Unicode code point is @samp{U+@var{nnnnnn}}, if such a character +is supported by Emacs. + + Unlike in some other programming languages, in Emacs Lisp this +syntax is available for character literals, and (see later) in +strings, but not elsewhere. + @cindex @samp{\} in character constant @cindex backslash in character constant @cindex octal character code