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 03:20:43 -0700 (PDT) Message-ID: <3586bcf6-f05a-4c4c-88fc-bfeee25417a1@googlegroups.com> References: <8761h764uv.fsf@geodiff-mac3.ulb.ac.be> <874mwrrudt.fsf@yahoo.fr> <4fcd473a-30bd-4f90-a9cc-d0a20ec52660@googlegroups.com> <4dae3db2-702e-4eb9-8087-4c9e94998b0f@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 1410344814 8478 80.91.229.3 (10 Sep 2014 10:26:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 10:26:54 +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 12:26:45 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 1XRf6X-0001HL-0D for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 12:26:25 +0200 Original-Received: from localhost ([::1]:54951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRf6W-0000DF-JB for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 06:26:24 -0400 X-Received: by 10.50.25.129 with SMTP id c1mr5126734igg.7.1410344443321; Wed, 10 Sep 2014 03:20:43 -0700 (PDT) X-Received: by 10.140.93.113 with SMTP id c104mr1991qge.21.1410344443279; Wed, 10 Sep 2014 03:20:43 -0700 (PDT) Original-Path: usenet.stanford.edu!uq10no11794654igb.0!news-out.google.com!q8ni0qal.1!nntp.google.com!m5no27841qaj.0!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 10:20:43 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207498 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:99773 Archived-At: Il giorno mercoled=EC 10 settembre 2014 12:01:07 UTC+2, Nicolas Richard ha = scritto: > Renato Pontefice writes: >=20 > >>(while (and (not (eobp)) >=20 > >>=20 >=20 > >> (search-forward "[-" nil 'move))) >=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 > > doesn't works :-( >=20 > > >=20 > > it seems like it does not start search. >=20 > > >=20 > > what is changed? >=20 >=20 >=20 > Did you try from the beginning of buffer ? (it only searches forward) >=20 > IIRC the only thing I changed was use a 'move argument in search-forward >=20 > (anything besides t or nil, in fact). >=20 >=20 >=20 > --=20 >=20 > Nicolas Richard Yes. From the beginning! it give me: trailing garbage following expression in that line: " (search-forward "[-" nil 'move)))" do the ' character is correct? Renato