help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About `catch' and `throw'


From: Xue Fuqiao
Subject: About `catch' and `throw'
Date: Fri, 21 Dec 2012 20:00:01 +0800

I'm reading the Emacs Lisp Reference Manual, and I met a problem.  In the node 
10.5.1(http://www.gnu.org/software/emacs/manual/html_node/elisp/Catch-and-Throw.html#Catch-and-Throw),
 it says:

throw is used inside a catch, and jumps back to that catch. For example:
     (defun foo-outer ()
       (catch 'foo
         (foo-inner)))
     (defun foo-inner ()
       ...
       (if x
           (throw 'foo t))
       ...)

but the `throw' is used outside the `catch', I'm confused.  Can anybody help?

English is not my native language; please excuse typing errors.
-- 
Best regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]