Next: , Previous: , Up: Hemlock’s Lisp Environment   [Contents][Index]


14.1 Entering and Leaving the Editor

Hemlock Variable: Entry Hook
Function: Function ed &optional x

ed enters the editor. It is basically as specified in Common Lisp. If x is supplied and is a symbol, the definition of x is put into a buffer, and that buffer is selected. If x is a pathname, the file specified by x is visited in a new buffer. If x is not supplied or nil, the editor is entered in the same state as when last exited.

The Entry Hook is invoked each time the editor is entered.

Hemlock Variable: Exit Hook
Function: exit-hemlock &optional value

exit-hemlock leaves Hemlock and return to Lisp; value is the value to return, which defaults to t. The hook Exit Hook is invoked before this is done.

Function: pause-hemlock

pause-hemlock suspends the editor process and returns control to the shell. When the process is resumed, it will still be running Hemlock.


Next: Keyboard Input, Previous: Hemlock’s Lisp Environment, Up: Hemlock’s Lisp Environment   [Contents][Index]