From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: renato.pontefice@gmail.com Newsgroups: gmane.emacs.help Subject: Re: regexp on emacs how to... Date: Wed, 3 Sep 2014 02:25:53 -0700 (PDT) Message-ID: <4fcd473a-30bd-4f90-a9cc-d0a20ec52660@googlegroups.com> References: <8761h764uv.fsf@geodiff-mac3.ulb.ac.be> <874mwrrudt.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1409736709 9951 80.91.229.3 (3 Sep 2014 09:31:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2014 09:31:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 11:31:42 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XP6uZ-00058W-QT for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2014 11:31:31 +0200 Original-Received: from localhost ([::1]:43494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP6uZ-0007AT-Bv for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2014 05:31:31 -0400 X-Received: by 10.50.138.167 with SMTP id qr7mr18786096igb.6.1409736354110; Wed, 03 Sep 2014 02:25:54 -0700 (PDT) X-Received: by 10.140.30.201 with SMTP id d67mr32030qgd.8.1409736353968; Wed, 03 Sep 2014 02:25:53 -0700 (PDT) Original-Path: usenet.stanford.edu!uq10no8812249igb.0!news-out.google.com!q8ni8qal.1!nntp.google.com!dc16no767413qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2.118.42.225; posting-account=u2YPPQoAAAD4EIiLgz2UEPmFMncWw22R Original-NNTP-Posting-Host: 2.118.42.225 User-Agent: G2/1.0 Injection-Date: Wed, 03 Sep 2014 09:25:53 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207342 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99619 Archived-At: Il giorno mercoled=EC 3 settembre 2014 11:24:49 UTC+2, renato.p...@gmail.co= m ha scritto: > Il giorno marted=EC 2 settembre 2014 13:03:23 UTC+2, Nicolas Richard ha s= critto: >=20 > > Le 02/09/2014 09:48, Renato Pontefice a =E9crit : >=20 > >=20 >=20 > > > wich coul be the elisp code, than check all the tags ([-.....-]), but= , >=20 > >=20 >=20 > > > from the beginning ([-) to the end (-]) find some non capital letter >=20 > >=20 >=20 > > > (any one) >=20 > >=20 >=20 > >=20 >=20 > >=20 >=20 > > I did not give it much testing, but I think this should do it: >=20 > >=20 >=20 > >=20 >=20 > >=20 >=20 > > (while (and (not (eobp)) (search-forward "[-" nil t)) >=20 > >=20 >=20 > > (skip-chars-forward "A-Z") >=20 > >=20 >=20 > > (unless (looking-at "-]") >=20 > >=20 >=20 > > (message "Problem found, please fix and hit C-M-c to continue") >=20 > >=20 >=20 > > (recursive-edit))) >=20 > >=20 >=20 > >=20 >=20 > >=20 >=20 > > (I think my previous mail was sent twice, sorry about that.) >=20 > >=20 >=20 > >=20 >=20 > >=20 >=20 > > --=20 >=20 > >=20 >=20 > > Nicolas. >=20 >=20 >=20 > (as rightly said Nicolas, I continue the post on the groups. My last two = messages:) >=20 >=20 >=20 > Nicolas...I would not be too hasty..... but it seems to work!!!!!!!!!!!!! >=20 >=20 >=20 > I thank you for your help, now Icontinue to try!!!!! >=20 >=20 >=20 > Thanks again >=20 >=20 >=20 > Renato As I told you before, your code works great. The only things I find that se= ems not work is: - when inside the file, there is no error text (\lojkklj\=F2lll=F2...) 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