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 15:52:53 +0200 Message-ID: <8761gv37m2.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> <3586bcf6-f05a-4c4c-88fc-bfeee25417a1@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410357096 6027 80.91.229.3 (10 Sep 2014 13:51:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 13:51:36 +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 15:51:29 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 1XRiIe-00074u-6x for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 15:51:08 +0200 Original-Received: from localhost ([::1]:56503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRiId-0003Ne-T8 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2014 09:51:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRiIK-0003Lb-KM for help-gnu-emacs@gnu.org; Wed, 10 Sep 2014 09:50:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRiIC-0002yJ-Ui for help-gnu-emacs@gnu.org; Wed, 10 Sep 2014 09:50:48 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:23391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRiIC-0002y7-KL for help-gnu-emacs@gnu.org; Wed, 10 Sep 2014 09:50:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlUKAF9WEFSkD4Xx/2dsb2JhbABZhDexIQagXgGBJniEBAEFeRALISUPAQQNPBOILQEDEap1jCMBSg2GOQEXhXyCIoUCgi0HhEwBBJpjiTmHSoY7g2M7L4JPAQEB 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 15:50:18 +0200 In-Reply-To: <3586bcf6-f05a-4c4c-88fc-bfeee25417a1@googlegroups.com> (Renato Pontefice's message of "Wed, 10 Sep 2014 03:20:43 -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:99779 Archived-At: Hello Renato, Renato Pontefice writes: > Yes. From the beginning! it give me: > trailing garbage following expression > > in that line: " (search-forward "[-" nil 'move)))" > > do the ' character is correct? It is. There is however one paren that should be else where. I guess I copy-pasted too hastily. Here's a corrected version: (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))) -- Nicolas Richard