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


14.6 Event Scheduling

The mechanism described in this chapter is only operative when the Lisp process is actually running inside of Hemlock, within the ed function. The designers intended its use to be associated with the editor, such as with auto-saving files, reminding the user, etc.

Function: schedule-event time function &optional repeat

This causes Hemlock to call function after time seconds have passed, optionally repeating every time seconds. Repeat defaults to t. This is a rough mechanism since commands can take an arbitrary amount of time to run; Hemlock invokes function at the first possible moment after time has elapsed. Function takes the time in seconds that has elapsed since the last time it was called (or since it was scheduled for the first invocation).

Function: remove-scheduled-event function

This removes function from the scheduling queue. Function does not have to be in the queue.


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