* how to break the `while' loop.
@ 2005-11-17 19:20 mak kwak
2005-11-17 19:35 ` Henrik Enberg
0 siblings, 1 reply; 2+ messages in thread
From: mak kwak @ 2005-11-17 19:20 UTC (permalink / raw)
Hallo
I'm sorry for (maybe) stupid question, but I did not find any information on that neither in elisp manual nor on the internet.
How can I break the loop in elisp, like I do it with `break' command in C for example.
Greetings
----------------------------------------------------
Nawiązująca do "Wall Street" i "Adwokata diabła" opowieść o
rozgrywce między ambitnym uczniem i jego wyrachowanym mistrzem,
w której stawką są grube miliony! PODWÓJNA GRA już
w kinach! http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fpodwojnagra.html&sid=574
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to break the `while' loop.
2005-11-17 19:20 how to break the `while' loop mak kwak
@ 2005-11-17 19:35 ` Henrik Enberg
0 siblings, 0 replies; 2+ messages in thread
From: Henrik Enberg @ 2005-11-17 19:35 UTC (permalink / raw)
> I'm sorry for (maybe) stupid question, but I did not find any
> information on that neither in elisp manual nor on the internet. How
> can I break the loop in elisp, like I do it with `break' command in C
> for example.
`catch' and `throw' are probably the easiest way.
(catch 'tag
(while ...
(throw 'tag value)))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-17 19:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17 19:20 how to break the `while' loop mak kwak
2005-11-17 19:35 ` Henrik Enberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).