From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: how to find " on string Date: Tue, 16 Sep 2014 20:30:59 +0800 Message-ID: <87k353karg.fsf@ericabrahamsen.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410870436 16001 80.91.229.3 (16 Sep 2014 12:27:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2014 12:27:16 +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 14:27:07 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 1XTrqd-0005Mr-OL for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 14:27:07 +0200 Original-Received: from localhost ([::1]:37682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTrqd-0003zV-8P for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 08:27:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTrqK-0003zH-OV for help-gnu-emacs@gnu.org; Tue, 16 Sep 2014 08:26:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTrqD-0006do-9c for help-gnu-emacs@gnu.org; Tue, 16 Sep 2014 08:26:48 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTrqD-0006dU-3J for help-gnu-emacs@gnu.org; Tue, 16 Sep 2014 08:26:41 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XTrq6-0005Co-Ov for help-gnu-emacs@gnu.org; Tue, 16 Sep 2014 14:26:34 +0200 Original-Received: from 114.248.26.115 ([114.248.26.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2014 14:26:34 +0200 Original-Received: from eric by 114.248.26.115 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2014 14:26:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.26.115 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:dFqzZjAauhJ2MG2aqoRWmTymago= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:99949 Archived-At: Renato Pontefice writes: > ok, with this elisp, > > (defun my-working-code () > "Some really useful thing." > (interactive) > (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)))) I can find for all I need to search. > I look for many char that I'm looking for. > I've added some char ( (skip-chars-forward "A-Z_\\(0-9\)")) > > I would also look for ", but I can't find the char that indicate that. Wich one is it? Probably just an escaped double-quote: \" Also, your skip-chars-forward looks funny, you've double-backslashed the opening parenthesis but single-backslashed the closing, while according to the docstring of skip-chars-forward you probably need neither: A-Z0-9_\" might be all you need. Try that and see. Eric