From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: regexp on emacs how to... Date: Wed, 10 Sep 2014 12:01:07 +0200 Message-ID: <87ha0f3icc.fsf@geodiff-mac3.ulb.ac.be> 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 X-Trace: ger.gmane.org 1410343182 19741 80.91.229.3 (10 Sep 2014 09:59:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 09:59:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Renato Pontefice Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 10 11:59:35 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 1XReg6-0006he-11 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 11:59:06 +0200 Original-Received: from localhost ([::1]:54782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XReg5-0005Kr-F8 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 05:59:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRefi-0005Dw-Ix for help-gnu-emacs@gnu.org; Wed, 10 Sep 2014 05:58:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRefa-0006ss-Tv for help-gnu-emacs@gnu.org; Wed, 10 Sep 2014 05:58:42 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:49627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRefa-0006sR-MW for help-gnu-emacs@gnu.org; Wed, 10 Sep 2014 05:58:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlUKAMMfEFSkD4Xx/2dsb2JhbABZhDexFQagXgGBIniEBAEFeRALISUPAQQNPBOILQEDEaoojBsBSg2GOQEXhXyCIoUCgi0HhEwBBJpjiTmHSoY7g2M7L4JPAQEB Original-Received: from mathsrv4.ulb.ac.be (HELO geodiff-mac3.ulb.ac.be) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 10 Sep 2014 11:58:33 +0200 In-Reply-To: <4dae3db2-702e-4eb9-8087-4c9e94998b0f@googlegroups.com> (Renato Pontefice's message of "Wed, 10 Sep 2014 01:55:25 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 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:99772 Archived-At: Renato Pontefice writes: >>(while (and (not (eobp)) >> >> (search-forward "[-" nil 'move))) >> >> (skip-chars-forward "A-Z") >> >> (unless (looking-at "-]") >> >> (message "Problem found, please fix and hit C-M-c to continue") >> >> (recursive-edit)) > > doesn't works :-( > > it seems like it does not start search. > > what is changed? Did you try from the beginning of buffer ? (it only searches forward) IIRC the only thing I changed was use a 'move argument in search-forward (anything besides t or nil, in fact). -- Nicolas Richard