[Top][All Lists]

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

Re: regexp on emacs how to...

From: Nicolas Richard
Subject: Re: regexp on emacs how to...
Date: Tue, 02 Sep 2014 13:03:23 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

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")

(I think my previous mail was sent twice, sorry about that.)


reply via email to

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