improved printing a little bit for stepper and traces

svn: r11322
This commit is contained in:
Robby Findler 2008-08-19 04:57:33 +00:00
parent 156d3364df
commit 47521e5ea4
2 changed files with 13 additions and 1 deletions

View File

@ -19,10 +19,15 @@
(λ (val display? op)
(cond
[(hole? val) 4]
[(eq? val 'hole) 6]
[else #f]))]
[pretty-print-print-hook
(λ (val display? op)
(display "hole" op))])
(cond
[(hole? val)
(display "hole" op)]
[(eq? val 'hole)
(display ",'hole" op)]))])
(pretty-print v port)))
(define reflowing-snip<%>

View File

@ -1138,6 +1138,13 @@ These four parameters control the color of the edges in the graph.
This is the default value of @scheme[pp] used by @scheme[traces] and
@scheme[stepper] and it uses
@scheme[pretty-print].
It sets the @scheme[pretty-print-columns] parameter to
@scheme[width], and it sets @scheme[pretty-print-size-hook]
and @scheme[pretty-print-print-hook] to print holes and the
symbol @scheme['hole] to match the way they are input in a
@scheme[term] expression.
}
@section{Typesetting}