# HG changeset patch # User Aidan Kehoe # Date 1217065573 -7200 # Node ID f9104f0e9b91b9f7ddc23c53ec8a98c625ad992b # Parent 57db42ba54fb4387126a494cd4c4e9d59ab85513 Document the error on over-long hex character constants. 2008-07-26 Aidan Kehoe * lispref/objects.texi (Character Type): Document the error provoked when the reader sees an over-long hexadecimal constant. diff -r 57db42ba54fb -r f9104f0e9b91 man/ChangeLog --- a/man/ChangeLog Sat Jul 26 11:33:24 2008 +0200 +++ b/man/ChangeLog Sat Jul 26 11:46:13 2008 +0200 @@ -1,3 +1,9 @@ +2008-07-26 Aidan Kehoe + + * lispref/objects.texi (Character Type): + Document the error provoked when the reader sees an over-long + hexadecimal constant. + 2008-07-26 Aidan Kehoe * lispref/variables.texi (Extent): diff -r 57db42ba54fb -r f9104f0e9b91 man/lispref/objects.texi --- a/man/lispref/objects.texi Sat Jul 26 11:33:24 2008 +0200 +++ b/man/lispref/objects.texi Sat Jul 26 11:46:13 2008 +0200 @@ -647,17 +647,16 @@ followed by a backslash and the character code in octal (up to three octal digits); thus, @samp{?\101} for the character @kbd{A}, @samp{?\001} for the character @kbd{C-a}, and @code{?\002} for the -character @kbd{C-b}. +character @kbd{C-b}. The reader will finalize the character and start +reading the next token when a non-octal-digit is encountered or three +octal digits are read. The second consists of a question mark followed by a backslash, the character @samp{x}, and the character code in hexadecimal (up to two hexadecimal digits); thus, @samp{?\x41} for the character @kbd{A}, @samp{?\x1} for the character @kbd{C-a}, and @code{?\x2} for the -character @kbd{C-b}. - -In both cases, the reader will finalize the character when a non-digit -is encountered or the maximum length of a character code is reached. It -then starts reading the next token. +character @kbd{C-b}. If more than two hexadecimal codes are given, the +reader signals an error. @example @group