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

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

Re: how to break the `while' loop.


From: Henrik Enberg
Subject: Re: how to break the `while' loop.
Date: Thu, 17 Nov 2005 20:35:03 +0100 (CET)

> 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)))




reply via email to

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