10.3 Listener commands

10.3.5 :HIS

This command was discussed in the introductory chapter. The discussion is repeated here for the sake of completeness.

(If your listener has recorded more than twenty events, it is recommended that you re-start FreeLisp and type-in a few legal forms in order to appreciate the examples below.)

You can obtain a list of the last twenty events in the history by typing :his at the prompt.

1. Type :his

CL-USER 12 > :his

1 : (SETQ X 12)
2 : X
3 : (SETQ X 2)
4 : (SETQ X 2)
5 : X
6 : (SETQ X 2)
7 : (/ 4 2)
8 : (- 4 2)
9 : PREVIOUS-COMMAND
10 : (* 5 5)
11 : (+ 5 5)

CL-USER 12 >

All of the events in the listener so far are listed, because there are less than twenty. If there were more than twenty and you wanted to see them all, you could do so by supplying a number to the :his command. You can use a number less than twenty to constrain the number of events printed.

2. Type :his 3

CL-USER 12 > :his 3

9 :  PREVIOUS-COMMAND
10 : (* 5 5)
11 : (+ 5 5)

CL-USER 12 >

The environment lists the last three events in the history.

Note: History information requests do not advance the history number of the prompt. They are not placed in the history list.

Note: You can also select events from the last twenty in the history list from the History menu.


FreeLisp User's Guide - 5 FEB 1996

Generated with Harlequin WebMaker