[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
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
andthrow
Nonlocal exits for the program's own purposes. 10.5.2 Examples of catch
andthrow
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.