mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
only one Value History section
* doc/ref/repl-modules.texi: Remove section on Value History, it's covered in scheme-using. * doc/ref/scheme-using.texi: Rename "Value Historyx" section to "Value History". * doc/ref/guile.texi: Update xref.
This commit is contained in:
parent
69724dde0a
commit
ca290a89f3
3 changed files with 3 additions and 36 deletions
|
@ -352,7 +352,6 @@ available through both Scheme and C interfaces.
|
|||
* SRFI Support:: Support for various SRFIs.
|
||||
* R6RS Support:: Modules defined by the R6RS.
|
||||
* Readline Support:: Module for using the readline library.
|
||||
* Value History:: Maintaining a value history in the REPL.
|
||||
* Pretty Printing:: Nicely formatting Scheme objects for output.
|
||||
* Formatted Output:: The @code{format} procedure.
|
||||
* File Tree Walk:: Traversing the file system.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@c -*-texinfo-*-
|
||||
@c This is part of the GNU Guile Reference Manual.
|
||||
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004
|
||||
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2010
|
||||
@c Free Software Foundation, Inc.
|
||||
@c See the file guile.texi for copying conditions.
|
||||
|
||||
|
@ -254,38 +254,6 @@ possibilities in @var{string-list}. Matching is case-sensitive.
|
|||
@end defun
|
||||
|
||||
|
||||
@node Value History
|
||||
@section Value History
|
||||
|
||||
@c FIXME::martin: Review me!
|
||||
|
||||
@cindex value history
|
||||
Another module which makes command line usage more convenient is
|
||||
@code{(ice-9 history)}. This module will change the REPL so that each
|
||||
value which is evaluated and printed will be remembered under a name
|
||||
constructed from the dollar character (@code{$}) and the number of the
|
||||
evaluated expression.
|
||||
|
||||
Consider an example session.
|
||||
|
||||
@example
|
||||
guile> (use-modules (ice-9 history))
|
||||
guile> 1
|
||||
$1 = 1
|
||||
guile> (+ $1 $1)
|
||||
$2 = 2
|
||||
guile> (* $2 $2)
|
||||
$3 = 4
|
||||
@end example
|
||||
|
||||
After loading the value history module @code{(ice-9 history)}, one
|
||||
(trivial) expression is evaluated. The result is stored into the
|
||||
variable @code{$1}. This fact is indicated by the output @code{$1 = },
|
||||
which is also caused by @code{(ice-9 history)}. In the next line, this
|
||||
variable is used two times, to produce the value @code{$2}, which in
|
||||
turn is used in the calculation for @code{$3}.
|
||||
|
||||
|
||||
@c Local Variables:
|
||||
@c TeX-master: "guile.texi"
|
||||
@c End:
|
||||
|
|
|
@ -36,7 +36,7 @@ support for languages other than Scheme.
|
|||
|
||||
@menu
|
||||
* Readline::
|
||||
* Value Historyx::
|
||||
* Value History::
|
||||
* REPL Commands::
|
||||
* Error Handling::
|
||||
* Interactive Debugging::
|
||||
|
@ -63,7 +63,7 @@ starts up interactively, so anything in this file has the same effect
|
|||
as if you type it in by hand at the ``scheme@@(guile-user)>'' prompt.
|
||||
|
||||
|
||||
@node Value Historyx
|
||||
@node Value History
|
||||
@subsection Value History
|
||||
|
||||
Just as Readline helps you to reuse a previous input line, @dfn{value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue