Mercurial > hg > xemacs-beta
comparison man/lispref/objects.texi @ 4486:f9104f0e9b91
Document the error on over-long hex character constants.
2008-07-26 Aidan Kehoe <kehoea@parhasard.net>
* lispref/objects.texi (Character Type):
Document the error provoked when the reader sees an over-long
hexadecimal constant.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 26 Jul 2008 11:46:13 +0200 |
parents | a99eb40f0b5b |
children | 95b04754ea8c |
comparison
equal
deleted
inserted
replaced
4485:57db42ba54fb | 4486:f9104f0e9b91 |
---|---|
645 | 645 |
646 The first consists of a question mark | 646 The first consists of a question mark |
647 followed by a backslash and the character code in octal (up to three | 647 followed by a backslash and the character code in octal (up to three |
648 octal digits); thus, @samp{?\101} for the character @kbd{A}, | 648 octal digits); thus, @samp{?\101} for the character @kbd{A}, |
649 @samp{?\001} for the character @kbd{C-a}, and @code{?\002} for the | 649 @samp{?\001} for the character @kbd{C-a}, and @code{?\002} for the |
650 character @kbd{C-b}. | 650 character @kbd{C-b}. The reader will finalize the character and start |
651 reading the next token when a non-octal-digit is encountered or three | |
652 octal digits are read. | |
651 | 653 |
652 The second consists of a question mark followed by a backslash, the | 654 The second consists of a question mark followed by a backslash, the |
653 character @samp{x}, and the character code in hexadecimal (up to two | 655 character @samp{x}, and the character code in hexadecimal (up to two |
654 hexadecimal digits); thus, @samp{?\x41} for the character @kbd{A}, | 656 hexadecimal digits); thus, @samp{?\x41} for the character @kbd{A}, |
655 @samp{?\x1} for the character @kbd{C-a}, and @code{?\x2} for the | 657 @samp{?\x1} for the character @kbd{C-a}, and @code{?\x2} for the |
656 character @kbd{C-b}. | 658 character @kbd{C-b}. If more than two hexadecimal codes are given, the |
657 | 659 reader signals an error. |
658 In both cases, the reader will finalize the character when a non-digit | |
659 is encountered or the maximum length of a character code is reached. It | |
660 then starts reading the next token. | |
661 | 660 |
662 @example | 661 @example |
663 @group | 662 @group |
664 ;; @r{Under XEmacs 20:} | 663 ;; @r{Under XEmacs 20:} |
665 ?\012 @result{} ?\n ?\n @result{} ?\n ?\C-j @result{} ?\n | 664 ?\012 @result{} ?\n ?\n @result{} ?\n ?\C-j @result{} ?\n |