diff options
-rw-r--r-- | NEWS | 19 | ||||
-rw-r--r-- | doc/ref/api-options.texi | 14 |
2 files changed, 31 insertions, 2 deletions
@@ -335,6 +335,25 @@ Now: guile> #: foo #:foo +** The printing of symbols that might look like keywords can be + controlled. + +The new printer option 'quote-keywordish-symbols' controls how symbols +are printed that have a colon as their first or last character. The +default now is to only quote a symbol with #{...}# when the read +option 'keywords' is not '#f'. Thus: + + guile> (define foo (string->symbol ":foo")) + guile> (read-set! keywords #f) + guile> foo + :foo + guile> (read-set! keywords 'prefix) + guile> foo + #{:foo}# + guile> (print-set! quote-keywordish-symbols #f) + guile> foo + :foo + ** 'while' now provides 'break' and 'continue' break and continue were previously bound in a while loop, but not diff --git a/doc/ref/api-options.texi b/doc/ref/api-options.texi index 9d65b590f..7caba0c78 100644 --- a/doc/ref/api-options.texi +++ b/doc/ref/api-options.texi @@ -513,8 +513,18 @@ Here is the list of print options generated by typing values. @smallexample -source no Print closures with source. -closure-hook #f Hook for printing closures. +quote-keywordish-symbols reader How to print symbols that have a colon + as their first or last character. The + value '#f' does not quote the colons; + '#t' quotes them; 'reader' quotes + them when the reader option + 'keywords' is not '#f'. + +highlight-prefix @{ The string to print before highlighted values. +highlight-suffix @} The string to print after highlighted values. + +source no Print closures with source. +closure-hook #f Hook for printing closures. @end smallexample |