[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.5 Nonlocal Exits

A nonlocal exit is a transfer of control from one point in a program to another remote point. Nonlocal exits can occur in Emacs Lisp as a result of errors; you can also use them under explicit control. Nonlocal exits unbind all variable bindings made by the constructs being exited.

10.5.1 Explicit Nonlocal Exits: catch and throw  Nonlocal exits for the program's own purposes.
10.5.2 Examples of catch and throw  Showing how such nonlocal exits can be written.
10.5.3 Errors  How errors are signaled and handled.
10.5.4 Cleaning Up from Nonlocal Exits  Arranging to run a cleanup form if an error happens.



This document was generated on May 2, 2002 using texi2html