From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Renato Pontefice Newsgroups: gmane.emacs.help Subject: Re: regexp on emacs how to... Date: Thu, 4 Sep 2014 03:48:41 -0700 (PDT) Message-ID: References: <8761h764uv.fsf@geodiff-mac3.ulb.ac.be> <874mwrrudt.fsf@yahoo.fr> <4fcd473a-30bd-4f90-a9cc-d0a20ec52660@googlegroups.com> 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 1409827833 25789 80.91.229.3 (4 Sep 2014 10:50:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2014 10:50:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 12:50:25 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 1XPUcQ-00027j-NZ for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2014 12:50:22 +0200 Original-Received: from localhost ([::1]:49926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPUcQ-0006Yt-Dz for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2014 06:50:22 -0400 X-Received: by 10.66.193.227 with SMTP id hr3mr2068397pac.0.1409827721988; Thu, 04 Sep 2014 03:48:41 -0700 (PDT) X-Received: by 10.140.33.161 with SMTP id j30mr100149qgj.4.1409827721726; Thu, 04 Sep 2014 03:48:41 -0700 (PDT) Original-Path: usenet.stanford.edu!r2no14150145igi.0!news-out.google.com!i10ni1qaf.0!nntp.google.com!dc16no1070605qab.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: Thu, 04 Sep 2014 10:48:41 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207360 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:99659 Il giorno mercoled=EC 3 settembre 2014 12:47:22 UTC+2, Nicolas Richard ha s= critto: > renato.pontefice@gmail.com writes: >=20 > > As I told you before, your code works great. The only things I find tha= t seems not work is: >=20 > > >=20 > > - when inside the file, there is no error text (\lojkklj\=F2lll=F2...) >=20 > > the cursor, stop him self, at every occurence of [- and I have to press= C-M c to reach the end of file. >=20 > > >=20 > > It could be a good things, that, if there is not any occurence of the e= rror, it arrive at end of file >=20 >=20 >=20 > I guess I misunderstood know what constitutes an error. Could you >=20 > provide examples where the code below stops and shouldn't ? >=20 >=20 >=20 > (while (and (not (eobp)) (search-forward "[-" nil t)) >=20 > (skip-chars-forward "A-Z") >=20 > (unless (looking-at "-]") >=20 > (message "Problem found, please fix and hit C-M-c to continue") >=20 > (recursive-edit))) >=20 >=20 >=20 > --=20 >=20 > Nicolas Richard Ok, this file (is an example) has not problem, but when I execute the code,= it arrive at the end of file but do not show that is arrived at the endo o= f file TIA Renato ps (I send you the file at you email, because I'm unable to send here a file )