From 11bfb6938ac99f4c2286432b9b187993347e4130 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 16 Jun 2006 15:19:06 +0000 Subject: (Character Type): Clarify prev. change. (Non-ASCII in Strings): Mention \u and \U. --- lispref/objects.texi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lispref/objects.texi b/lispref/objects.texi index 688fd0be398..b721809d18b 100644 --- a/lispref/objects.texi +++ b/lispref/objects.texi @@ -440,9 +440,9 @@ different syntax for specifying characters with code points above 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. + This peculiar and inconvenient syntax was adopted for compatibility +with other programming languages. Unlike some other languages, Emacs +Lisp supports this syntax in only character literals and strings. @cindex @samp{\} in character constant @cindex backslash in character constant @@ -1013,6 +1013,9 @@ this produces a unibyte string. However, using any hex escape in a string (even for an @acronym{ASCII} character) forces the string to be multibyte. + You can also specify characters in a string by their numeric values +in Unicode, using @samp{\u} and @samp{\U} (@pxref{Character Type}). + @xref{Text Representations}, for more information about the two text representations. -- cgit v1.2.1