diff options
author | Michael Gran <spk121@yahoo.com> | 2010-07-17 04:16:57 -0700 |
---|---|---|
committer | Michael Gran <spk121@yahoo.com> | 2010-07-17 04:16:57 -0700 |
commit | 0f3a70cfa897530cdc50aa768d73d41419a5b360 (patch) | |
tree | eb3eb9f4e2afb49e1204cec7c1fcceda4cf75845 /doc/ref/api-data.texi | |
parent | 211683cc5c99542dfb6e2a33f7cb8c1f9abbc702 (diff) | |
download | guile-0f3a70cfa897530cdc50aa768d73d41419a5b360.tar.gz |
Enable character hex escapes by default
R6RS character hex escapes do not conflict with legacy Guile octal
character escapes, so they can be enabled by default.
* libguile/read.c (scm_read_character): modified
* test-suite/tests/reader.test: modify character escape tests
* doc/ref/api-data.texi: modified
* doc/ref/api-options.texi: modified
Diffstat (limited to 'doc/ref/api-data.texi')
-rwxr-xr-x | doc/ref/api-data.texi | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index 40bd96909..cc1134396 100755 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -1763,17 +1763,9 @@ Characters may also be written using their code point values. They can be written with as an octal number, such as @code{#\10} for @code{#\bs} or @code{#\177} for @code{#\del}. -When the @code{r6rs-hex-escapes} reader option is enabled, there is an -additional syntax for character escapes: @code{#\xHHHH} -- the letter 'x' -followed by a hexadecimal number of one to eight digits. - -@lisp -(read-enable 'r6rs-hex-escapes) -@end lisp - -Enabling this option will also change the hex escape format for strings. More -on string escapes can be found at (@pxref{String Syntax}). More on reader -options in general can be found at (@pxref{Reader options}). +If one prefers hex to octal, there is an additional syntax for character +escapes: @code{#\xHHHH} -- the letter 'x' followed by a hexadecimal +number of one to eight digits. @rnindex char? @deffn {Scheme Procedure} char? x @@ -2698,9 +2690,8 @@ it can be enabled with the reader option @code{r6rs-hex-escapes}. (read-enable 'r6rs-hex-escapes) @end lisp -Enabling this option will also change the hex escape format for characters. -More on character escapes can be found at (@pxref{Characters}). More on -reader options in general can be found at (@pxref{Reader options}). +More on reader options in general can be found at (@pxref{Reader +options}). @node String Predicates @subsubsection String Predicates |