[Top][All Lists]

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

Re: How to break out of an emacs lisp loop ?

From: thermate
Subject: Re: How to break out of an emacs lisp loop ?
Date: Tue, 23 Oct 2007 20:10:35 -0000
User-agent: G2/1.0

On Oct 23, 11:29 am, address@hidden wrote:
> (while (not (forward-char))
>     (if (looking-at "a") break )
> When I run this sexp, I get error at break. So break is wrong syntax.
> But this is the way many C loops are written.
> while ((c=(getchar()) != EOF){ if (c=='a') break; }

Here is a one/two liner that exactly does what you want with the same
functions that you have and without any break and is actually readable
like an english sentence

(while (not (looking-at "a" ))


Watch and spread the link of the movie below. The 911 truthers
confront the VILE and EVIL RABID NEOCON ZIONIST Bastard
Norman Podhoretz at Barnes & Noble.

NYC Confronts Norman Podhoretz!!

from the great site <--------------------------
Loose Change
Terror Storm
Alex Jones -,
The Bohemian Grove
The arrest of Alex Jones by bush
Republican Pedophilia - a distinguished record
Monica Lewdinsky aka Bill Clintone
Neocons, Scooter, Judith Miller, Thomas Friedman, Charles Krauthmer,
Edward Bernays
Benjamin Friedman speech
Holocaust Victims Accuse the Zionists
Moshe Katsa and his rapes
Yank Bastards and their 911 HEINOUS CRIME

reply via email to

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