summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2019-09-27 14:06:53 +0200
committerAndy Wingo <wingo@pobox.com>2019-09-27 14:08:02 +0200
commit714d0b9d9fca247d834cafca5faf07f45291abca (patch)
tree72d87ae6e2ef4244926003cf9d57d94a9b42f1d2
parent15bef73647f6d7ef0691cc34114d93d610dc6ba4 (diff)
downloadguile-714d0b9d9fca247d834cafca5faf07f45291abca.tar.gz
Better R6RS compatibility
* module/ice-9/boot-9.scm (install-r6rs!): Also enable `hungry-eol-escapes'. * doc/ref/r6rs.texi (R6RS Incompatibilities): Document lack of unicode escapes in symbols.
-rw-r--r--doc/ref/r6rs.texi5
-rw-r--r--module/ice-9/boot-9.scm3
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/ref/r6rs.texi b/doc/ref/r6rs.texi
index 9d326ff09..5c1c1b18f 100644
--- a/doc/ref/r6rs.texi
+++ b/doc/ref/r6rs.texi
@@ -45,6 +45,11 @@ R6RS behavior can be turned on via a reader option. @xref{String
Syntax}, for more information.
@item
+Guile does not yet support Unicode escapes in symbols, such as
+@code{H\x65;llo} (the same as @code{Hello}), or @code(\x3BB;) (the same
+as @code{λ}).
+
+@item
A @code{set!} to a variable transformer may only expand to an
expression, not a definition---even if the original @code{set!}
expression was in definition context.
diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm
index fd4e19c00..adabbbbd6 100644
--- a/module/ice-9/boot-9.scm
+++ b/module/ice-9/boot-9.scm
@@ -4078,7 +4078,8 @@ R6RS. @xref{R6RS Incompatibilities} in the manual."
(set! %load-extensions
(cons* ".guile.sls" ".sls"
(delete ".guile.sls" (delete ".sls" %load-extensions))))
- (read-enable 'r6rs-hex-escapes))
+ (read-enable 'r6rs-hex-escapes)
+ (read-enable 'hungry-eol-escapes))