www.delorie.com/gnu/docs/elisp-manual-21/elisp_129.html   search  
 
Buy the book!


GNU Emacs Lisp Reference Manual

[ < ] [ > ]   [ << ] [ 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.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003