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

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

Re: regexp on emacs how to...


From: Renato Pontefice
Subject: Re: regexp on emacs how to...
Date: Thu, 4 Sep 2014 03:48:41 -0700 (PDT)
User-agent: G2/1.0

Il giorno mercoledì 3 settembre 2014 12:47:22 UTC+2, Nicolas Richard ha scritto:
> renato.pontefice@gmail.com writes:
> 
> > As I told you before, your code works great. The only things I find that 
> > seems not work is:
> 
> >
> 
> > - when inside the file, there is no error text (\lojkklj\òlllò...)
> 
> > the cursor, stop him self, at every occurence of [- and I have to press C-M 
> > c to reach the end of file.
> 
> >
> 
> > It could be a good things, that, if there is not any occurence of the 
> > error, it arrive at end of file
> 
> 
> 
> I guess I misunderstood know what constitutes an error. Could you
> 
> provide examples where the code below stops and shouldn't ?
> 
> 
> 
> (while (and (not (eobp)) (search-forward "[-" nil t))
> 
>   (skip-chars-forward "A-Z")
> 
>   (unless (looking-at "-]")
> 
>      (message "Problem found, please fix and hit C-M-c to continue")
> 
>      (recursive-edit)))
> 
> 
> 
> -- 
> 
> Nicolas Richard

Ok, this file (is an example) has not problem, but when I execute the code, it 
arrive at the end of file but do not show that is arrived at the endo of file

TIA

Renato

ps
(I send you the file at you email, because I'm unable to send here a file )


reply via email to

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