mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +02:00
Updated print-options.
This commit is contained in:
parent
7b4a9e526e
commit
227eafdb3c
2 changed files with 31 additions and 2 deletions
19
NEWS
19
NEWS
|
@ -335,6 +335,25 @@ Now:
|
||||||
guile> #: foo
|
guile> #: foo
|
||||||
#: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'
|
** 'while' now provides 'break' and 'continue'
|
||||||
|
|
||||||
break and continue were previously bound in a while loop, but not
|
break and continue were previously bound in a while loop, but not
|
||||||
|
|
|
@ -513,8 +513,18 @@ Here is the list of print options generated by typing
|
||||||
values.
|
values.
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
source no Print closures with source.
|
quote-keywordish-symbols reader How to print symbols that have a colon
|
||||||
closure-hook #f Hook for printing closures.
|
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
|
@end smallexample
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue