all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* About `catch' and `throw'
@ 2012-12-21 12:00 Xue Fuqiao
  2012-12-21 17:03 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Xue Fuqiao @ 2012-12-21 12:00 UTC (permalink / raw)
  To: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-02-13  1:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21 12:00 About `catch' and `throw' Xue Fuqiao
2012-12-21 17:03 ` Drew Adams
2012-12-22 17:50   ` Stefan Monnier
     [not found]   ` <mailman.15933.1356198906.855.help-gnu-emacs@gnu.org>
2012-12-22 20:33     ` Pascal J. Bourguignon
2012-12-21 19:08 ` Pascal J. Bourguignon
     [not found] ` <mailman.15880.1356116940.855.help-gnu-emacs@gnu.org>
2013-01-05  0:57   ` David Combs
2013-01-08 16:08     ` Stefan Monnier
     [not found]     ` <mailman.16939.1357661400.855.help-gnu-emacs@gnu.org>
2013-02-13  1:08       ` David Combs

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.