guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 01/01: Better R6RS compatibility


From: Andy Wingo
Subject: [Guile-commits] 01/01: Better R6RS compatibility
Date: Fri, 27 Sep 2019 08:09:45 -0400 (EDT)

wingo pushed a commit to branch master
in repository guile.

commit 714d0b9d9fca247d834cafca5faf07f45291abca
Author: Andy Wingo <address@hidden>
Date:   Fri Sep 27 14:06:53 2019 +0200

    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.
---
 doc/ref/r6rs.texi       | 5 +++++
 module/ice-9/boot-9.scm | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/doc/ref/r6rs.texi b/doc/ref/r6rs.texi
index 9d326ff..5c1c1b1 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 fd4e19c..adabbbb 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))
 
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]