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: Wed, 10 Sep 2014 01:55:25 -0700 (PDT)
User-agent: G2/1.0

Il giorno venerdì 5 settembre 2014 14:02:33 UTC+2, Nicolas Richard ha scritto:
> Renato Pontefice <renato.pontefice@gmail.com> writes:
> 
> > 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
> 
> 
> 
> As I think I have said by email (I should stop using multiple inboxes, I
> 
> can never remember if I did send my answers), here's a snippet which
> 
> should do what you want :
> 
> 
> 
> (while (and (not (eobp))
> 
>             (search-forward "[-" nil 'move)))
> 
>   (skip-chars-forward "A-Z")
> 
>   (unless (looking-at "-]")
> 
>      (message "Problem found, please fix and hit C-M-c to continue")
> 
>      (recursive-edit))
> 
> 
> 
> i.e. I switched to a non-boolean ('move) NOERROR argument to
> 
> search-forward.
> 
> 
> 
> HTH,
> 
> 
> 
> -- 
> 
> Nicolas Richard
Hi Nicolas,
sorry for the delay, these days I have been involved.

this code:
>(while (and (not (eobp))
> 
>             (search-forward "[-" nil 'move)))
> 
>   (skip-chars-forward "A-Z")
> 
>   (unless (looking-at "-]")
> 
>      (message "Problem found, please fix and hit C-M-c to continue")
> 
>      (recursive-edit))

doesn't works :-(

it seems like it does not start search.

what is changed?

TIA

Renato


reply via email to

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