10.3 Listener commands

10.3.2 :GET

This command binds an event from the history list to a variable. Consider the following example:

1. Type (/ 4 2) followed by (- 4 2)

CL-USER 7 > (/ 4 2)
2

CL-USER 8 > (- 4 2)
2

CL-USER 9 >

2. Type :get previous-command -2

This command binds the history event specified to the symbol previous-command.

3. Type previous-command

(/ 4 2) is printed.

CL-USER 9 > :get previous-command -2

CL-USER 9 > previous-command
(/ 4 2)

CL-USER 10 >

You can specify an event in any of the ways described under :redo, above.

Note: After a :get, the history number in the prompt does not advance.


FreeLisp User's Guide - 5 FEB 1996

Generated with Harlequin WebMaker