[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.4.4.8 System Commands
- REPL Command: option [name] [exp]
With no arguments, lists all options. With one argument, shows the current value of the name option. With two arguments, sets the name option to the result of evaluating the Scheme expression exp.
Current REPL options include:
compile-options
The options used when compiling expressions entered at the REPL. See section Compiling Scheme Code, for more on compilation options.
interp
Whether to interpret or compile expressions given at the REPL, if such a choice is available. Off by default (indicating compilation).
prompt
A customized REPL prompt.
#f
by default, indicating the default prompt.print
A procedure of two arguments used to print the result of evaluating each expression. The arguments are the current REPL and the value to print. By default,
#f
, to use the default procedure.value-history
Whether value history is on or not. See section Value History.
on-error
What to do when an error happens. By default,
debug
, meaning to enter the debugger. Other values includebacktrace
, to show a backtrace without entering the debugger, orreport
, to simply show a short error printout.
Default values for REPL options may be set using
repl-default-option-set!
from (system repl common)
:
- Scheme Procedure: repl-default-option-set! key value
Set the default value of a REPL option. This function is particularly useful in a user’s init file. See section The Init File, ‘~/.guile’.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on April 20, 2013 using texi2html 5.0.