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 03:20:43 -0700 (PDT)
User-agent: G2/1.0

Il giorno mercoledì 10 settembre 2014 12:01:07 UTC+2, Nicolas Richard ha 
scritto:
> Renato Pontefice <address@hidden> writes:
> 
> >>(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?
> 
> 
> 
> Did you try from the beginning of buffer ? (it only searches forward)
> 
> IIRC the only thing I changed was use a 'move argument in search-forward
> 
> (anything besides t or nil, in fact).
> 
> 
> 
> -- 
> 
> Nicolas Richard

Yes. From the beginning! it give me:
trailing garbage following expression

in that line: "   (search-forward "[-" nil 'move)))"

do the ' character is correct?

Renato


reply via email to

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