unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: thermate@india.com
To: help-gnu-emacs@gnu.org
Subject: Re: How to break out of an emacs lisp loop ?
Date: Tue, 23 Oct 2007 20:10:35 -0000	[thread overview]
Message-ID: <1193170235.626923.210420__42582.4837446727$1193320197$gmane$org@t8g2000prg.googlegroups.com> (raw)
In-Reply-To: <1193164140.500795.322030@t8g2000prg.googlegroups.com>

On Oct 23, 11:29 am, gnuist...@gmail.com 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" ))
  (forward-char))

=============

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!!
http://www.youtube.com/watch?v=3MBzLTjVMhY

from the great site
911blogger.com <--------------------------
http://www.voxfux.com/features/bush_child_sex_coverup/franklin.htm
<-----
http://counterpunch.org/neumann04142007.html
http://counterpunch.org/ross04182007.html
www.911truth.org
www.st911.org
www.counterpunch.org
www.countercurrents.org
www.nkusa.org
www.911blogger.org
www.mujca.org
http://home.att.net/~south.tower/911RussianSatellite1.htm
Loose Change
Terror Storm
Alex Jones - www.infowars.com, www.prisonplanet.org
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

  parent reply	other threads:[~2007-10-23 20:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-23 18:29 How to break out of an emacs lisp loop ? gnuist006
2007-10-23 19:03 ` Joost Kremers
2007-10-23 20:00 ` Bastien
2007-10-23 20:10 ` thermate [this message]
2007-10-24  1:12 ` Stefan Monnier
     [not found] ` <1193170235.626923.210420@t8g2000prg.googlegroups.com>
2007-10-24 19:59   ` Jason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='1193170235.626923.210420__42582.4837446727$1193320197$gmane$org@t8g2000prg.googlegroups.com' \
    --to=thermate@india.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).