[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
Message not available
- Message not available
- Message not available
- Message not available
- Re: regexp on emacs how to..., renato . pontefice, 2014/09/03
- Re: regexp on emacs how to...,
renato . pontefice <=
- Re: regexp on emacs how to..., Nicolas Richard, 2014/09/03
- Message not available
- Re: regexp on emacs how to..., Renato Pontefice, 2014/09/04
- Re: regexp on emacs how to..., Nicolas Richard, 2014/09/05
- Message not available
- Re: regexp on emacs how to..., Renato Pontefice, 2014/09/10
- Re: regexp on emacs how to..., Nicolas Richard, 2014/09/10
- Message not available
- Re: regexp on emacs how to..., Renato Pontefice, 2014/09/10
- Re: regexp on emacs how to..., Nicolas Richard, 2014/09/10
- Message not available
- Re: regexp on emacs how to..., Renato Pontefice, 2014/09/11