trace: limit length of "| | | "... prefix
authorAndy Wingo <wingo@pobox.com>
Wed, 16 Jan 2013 12:20:54 +0000 (13:20 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 16 Jan 2013 17:11:47 +0000 (18:11 +0100)
commit36c210d14e8572939901b9251492a3f4bf94988c
tree0c9a76223f257b535966a26e5cd9880c4d60c0b3
parent3404ada0a695b7e9ea1e6221fb1531ebdd73c211
trace: limit length of "| | | "... prefix

* module/system/vm/trace.scm (build-prefix): New helper.
  (print-application, print-return): Use the helper.
  (trace-calls-to-procedure, trace-calls-in-procedure):
  (trace-instructions-in-procedure, call-with-trace): Add #:max-indent
  argument, defaulting to the terminal width less 40 characters.

* doc/ref/scheme-using.texi: Update `trace' docs.

Based on a patch by Nala Ginrut.
doc/ref/scheme-using.texi
module/system/vm/trace.scm