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, 11 Sep 2014 00:29:15 -0700 (PDT) Message-ID: 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; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410420628 12541 80.91.229.3 (11 Sep 2014 07:30:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2014 07:30:28 +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 11 09:30:19 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 1XRypd-0002Le-MK for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 09:30:17 +0200 Original-Received: from localhost ([::1]:34597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRypd-0001Gs-5W for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 03:30:17 -0400 X-Received: by 10.50.25.129 with SMTP id c1mr56294igg.7.1410420556066; Thu, 11 Sep 2014 00:29:16 -0700 (PDT) X-Received: by 10.140.94.178 with SMTP id g47mr6531qge.29.1410420555887; Thu, 11 Sep 2014 00:29:15 -0700 (PDT) Original-Path: usenet.stanford.edu!h15no229893igd.0!news-out.google.com!q8ni6qal.1!nntp.google.com!m5no254166qaj.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: Thu, 11 Sep 2014 07:29:15 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207525 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:99800 Archived-At: Il giorno mercoled=EC 10 settembre 2014 15:52:53 UTC+2, Nicolas Richard ha = scritto: > Hello Renato, >=20 >=20 >=20 > Renato Pontefice writes: >=20 > > Yes. From the beginning! it give me: >=20 > > trailing garbage following expression >=20 > > >=20 > > in that line: " (search-forward "[-" nil 'move)))" >=20 > > >=20 > > do the ' character is correct? >=20 >=20 >=20 > It is. There is however one paren that should be else where. I guess I >=20 > copy-pasted too hastily. Here's a corrected version: >=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 > --=20 >=20 > Nicolas Richard Hi Nicolas, yes...it works...:-( I see the ' char and I don't see the third parenthesis...:-( Thank you Renato