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, 3 Sep 2014 02:25:53 -0700 (PDT)
User-agent: G2/1.0

Il giorno mercoledì 3 settembre 2014 11:24:49 UTC+2, renato.p...@gmail.com ha 
scritto:
> Il giorno martedì 2 settembre 2014 13:03:23 UTC+2, Nicolas Richard ha scritto:
> 
> > Le 02/09/2014 09:48, Renato Pontefice a écrit :
> 
> > 
> 
> > > wich coul be the elisp code, than check all the tags ([-.....-]), but,
> 
> > 
> 
> > > from the beginning ([-) to the end (-]) find some non capital letter
> 
> > 
> 
> > > (any one)
> 
> > 
> 
> > 
> 
> > 
> 
> > I did not give it much testing, but I think this should do it:
> 
> > 
> 
> > 
> 
> > 
> 
> > (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)))
> 
> > 
> 
> > 
> 
> > 
> 
> > (I think my previous mail was sent twice, sorry about that.)
> 
> > 
> 
> > 
> 
> > 
> 
> > -- 
> 
> > 
> 
> > Nicolas.
> 
> 
> 
> (as rightly said Nicolas, I continue the post on the groups. My last two 
> messages:)
> 
> 
> 
> Nicolas...I would not be too hasty..... but it seems to work!!!!!!!!!!!!!
> 
> 
> 
> I thank you for your help, now Icontinue to try!!!!!
> 
> 
> 
> Thanks again
> 
> 
> 
> Renato

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

TIA

Renato



reply via email to

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