[previous] [up] [next]     [contents] [index]
Next: Files Up: Application Toolbox Previous: Application Toolbox

Exiting

There are two procedures that exit MrEd:

Clean up actions can be installed by registering a callback procedure that will be invoked by mred:exit. To install a callback, use mred:insert-exit-callback:

  (mred:insert-exit-callback callback) 
On exit, callback will be called with no arguments; if it returns #f, then the exit is aborted.

The return value of mred:insert-exit-callback is a tag that can be used to remove the callback:

  (mred:remove-exit-callback callback-tag) 
callback-tag must be a value previously returned from mred:insert-exit-callback.

To run the exit callbacks, use :

  (mred:run-exit-callbacks) 


PLT