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: Wed, 10 Sep 2014 01:55:25 -0700 (PDT) Message-ID: <4dae3db2-702e-4eb9-8087-4c9e94998b0f@googlegroups.com> 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 1410339639 8418 80.91.229.3 (10 Sep 2014 09:00:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 09:00:39 +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 10 11:00:31 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 1XRdlO-0000EE-Si for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 11:00:31 +0200 Original-Received: from localhost ([::1]:54477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRdlO-0005Y4-IS for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 05:00:30 -0400 X-Received: by 10.50.49.33 with SMTP id r1mr20060957ign.3.1410339326229; Wed, 10 Sep 2014 01:55:26 -0700 (PDT) X-Received: by 10.140.93.113 with SMTP id c104mr1133qge.21.1410339326045; Wed, 10 Sep 2014 01:55:26 -0700 (PDT) Original-Path: usenet.stanford.edu!r2no18040463igi.0!news-out.google.com!q8ni1qal.1!nntp.google.com!dc16no2538730qab.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, 10 Sep 2014 08:55:26 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207490 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:99766 Archived-At: Il giorno venerd=EC 5 settembre 2014 14:02:33 UTC+2, Nicolas Richard ha scr= itto: > Renato Pontefice writes: >=20 > > Ok, this file (is an example) has not problem, but when I execute the >=20 > > code, it arrive at the end of file but do not show that is arrived at >=20 > > the endo of file >=20 >=20 >=20 > As I think I have said by email (I should stop using multiple inboxes, I >=20 > can never remember if I did send my answers), here's a snippet which >=20 > should do what you want : >=20 >=20 >=20 > (while (and (not (eobp)) >=20 > (search-forward "[-" nil 'move))) >=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 > i.e. I switched to a non-boolean ('move) NOERROR argument to >=20 > search-forward. >=20 >=20 >=20 > HTH, >=20 >=20 >=20 > --=20 >=20 > Nicolas Richard Hi Nicolas, sorry for the delay, these days I have been involved. this code: >(while (and (not (eobp)) >=20 > (search-forward "[-" nil 'move))) >=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)) doesn't works :-( it seems like it does not start search. what is changed? TIA Renato