aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-02-27 01:44:02 +0000
committerChong Yidong2009-02-27 01:44:02 +0000
commitfb080b287cc06833205985455fd6e584ab1a55da (patch)
tree86b0bbb1414f38659275d800ef396961d507e035
parentd55f6ca59b24ce37c151bd5b157434931e709bd8 (diff)
downloademacs-fb080b287cc06833205985455fd6e584ab1a55da.tar.gz
emacs-fb080b287cc06833205985455fd6e584ab1a55da.zip
(General Escape Syntax): Update explanation of unicode escape syntax.
-rw-r--r--doc/lispref/objects.texi19
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index 9291ca1160b..aa82c3db85a 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -346,18 +346,19 @@ following text.)
346@subsubsection General Escape Syntax 346@subsubsection General Escape Syntax
347 347
348 In addition to the specific escape sequences for special important 348 In addition to the specific escape sequences for special important
349control characters, Emacs provides general categories of escape syntax 349control characters, Emacs provides several types of escape syntax that
350that you can use to specify non-ASCII text characters. 350you can use to specify non-ASCII text characters.
351 351
352@cindex unicode character escape 352@cindex unicode character escape
353 For instance, you can specify characters by their Unicode values. 353 You can specify characters by their Unicode values.
354@code{?\u@var{nnnn}} represents a character that maps to the Unicode 354@code{?\u@var{nnnn}} represents a character that maps to the Unicode
355code point @samp{U+@var{nnnn}}. There is a slightly different syntax 355code point @samp{U+@var{nnnn}} (by convention, Unicode code points are
356for specifying characters with code points above @code{#xFFFF}; 356given in hexadecimal). There is a slightly different syntax for
357@code{\U00@var{nnnnnn}} represents the character whose Unicode code 357specifying characters with code points higher than
358point is @samp{U+@var{nnnnnn}}, if such a character is supported by 358@code{U+@var{ffff}}: @code{\U00@var{nnnnnn}} represents the character
359Emacs. If the corresponding character is not supported, Emacs signals 359whose code point is @samp{U+@var{nnnnnn}}. The Unicode standard only
360an error. 360defines code points up to @samp{U+@var{10ffff}}, so if you specify a
361code point higher than that, Emacs signals an error.
361 362
362 This peculiar and inconvenient syntax was adopted for compatibility 363 This peculiar and inconvenient syntax was adopted for compatibility
363with other programming languages. Unlike some other languages, Emacs 364with other programming languages. Unlike some other languages, Emacs