Mercurial > emacs
changeset 71373:f86289963a5c
(Character Type): Clarify prev. change.
(Non-ASCII in Strings): Mention \u and \U.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 16 Jun 2006 15:19:06 +0000 |
parents | c46f87481f13 |
children | a358bd87a242 |
files | lispref/objects.texi |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/objects.texi Fri Jun 16 15:18:03 2006 +0000 +++ b/lispref/objects.texi Fri Jun 16 15:19:06 2006 +0000 @@ -440,9 +440,9 @@ 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 @@ 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.