changeset 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 57db42ba54fb
children 866b84b7c97e
files man/ChangeLog man/lispref/objects.texi
diffstat 2 files changed, 11 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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  <kehoea@parhasard.net>
+
+	* lispref/objects.texi (Character Type):
+	Document the error provoked when the reader sees an over-long
+	hexadecimal constant.
+
 2008-07-26  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* lispref/variables.texi (Extent): 
--- 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