diff options
| author | Chong Yidong | 2009-02-27 01:44:02 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-02-27 01:44:02 +0000 |
| commit | fb080b287cc06833205985455fd6e584ab1a55da (patch) | |
| tree | 86b0bbb1414f38659275d800ef396961d507e035 | |
| parent | d55f6ca59b24ce37c151bd5b157434931e709bd8 (diff) | |
| download | emacs-fb080b287cc06833205985455fd6e584ab1a55da.tar.gz emacs-fb080b287cc06833205985455fd6e584ab1a55da.zip | |
(General Escape Syntax): Update explanation of unicode escape syntax.
| -rw-r--r-- | doc/lispref/objects.texi | 19 |
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 |
| 349 | control characters, Emacs provides general categories of escape syntax | 349 | control characters, Emacs provides several types of escape syntax that |
| 350 | that you can use to specify non-ASCII text characters. | 350 | you 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 |
| 355 | code point @samp{U+@var{nnnn}}. There is a slightly different syntax | 355 | code point @samp{U+@var{nnnn}} (by convention, Unicode code points are |
| 356 | for specifying characters with code points above @code{#xFFFF}; | 356 | given in hexadecimal). There is a slightly different syntax for |
| 357 | @code{\U00@var{nnnnnn}} represents the character whose Unicode code | 357 | specifying characters with code points higher than |
| 358 | point is @samp{U+@var{nnnnnn}}, if such a character is supported by | 358 | @code{U+@var{ffff}}: @code{\U00@var{nnnnnn}} represents the character |
| 359 | Emacs. If the corresponding character is not supported, Emacs signals | 359 | whose code point is @samp{U+@var{nnnnnn}}. The Unicode standard only |
| 360 | an error. | 360 | defines code points up to @samp{U+@var{10ffff}}, so if you specify a |
| 361 | code 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 |
| 363 | with other programming languages. Unlike some other languages, Emacs | 364 | with other programming languages. Unlike some other languages, Emacs |