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: how to find " on string Date: Tue, 16 Sep 2014 06:35:47 -0700 (PDT) Message-ID: <90e73c07-3e68-42ab-8d93-2a17d210ebdd@googlegroups.com> References: 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 1410874829 7060 80.91.229.3 (16 Sep 2014 13:40:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2014 13:40:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 15:40:22 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 1XTszV-0005tC-N0 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 15:40:21 +0200 Original-Received: from localhost ([::1]:38055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTszV-0002eC-1b for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 09:40:21 -0400 X-Received: by 10.66.218.33 with SMTP id pd1mr18882928pac.8.1410874548662; Tue, 16 Sep 2014 06:35:48 -0700 (PDT) X-Received: by 10.140.105.53 with SMTP id b50mr644771qgf.3.1410874548613; Tue, 16 Sep 2014 06:35:48 -0700 (PDT) Original-Path: usenet.stanford.edu!r10no3250725igi.0!news-out.google.com!q8ni12qal.1!nntp.google.com!m5no1488600qaj.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: Tue, 16 Sep 2014 13:35:48 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207680 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:99953 Archived-At: Il giorno marted=EC 16 settembre 2014 14:30:59 UTC+2, Eric Abrahamsen ha sc= ritto: > Renato Pontefice writes: >=20 >=20 >=20 > > ok, with this elisp, >=20 > > >=20 > > (defun my-working-code () >=20 > > "Some really useful thing." >=20 > > (interactive) >=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)))) I can find for all I need to search. >=20 > > I look for many char that I'm looking for. >=20 > > I've added some char ( (skip-chars-forward "A-Z_\\(0-9\)")) >=20 > > >=20 > > I would also look for ", but I can't find the char that indicate that. = Wich one is it? >=20 >=20 >=20 > Probably just an escaped double-quote: \" >=20 >=20 >=20 > Also, your skip-chars-forward looks funny, you've double-backslashed the >=20 > opening parenthesis but single-backslashed the closing, while according t= o >=20 > the docstring of skip-chars-forward you probably need neither: A-Z0-9_\" >=20 > might be all you need. Try that and see. >=20 >=20 >=20 > Eric nothing works...:-( maybe I made some mistake. Can someone add, in thist line of code (skip-chars-forward "A-Z_\\(0-9\)") the right char to skip the " (double quote) ? TIA