all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Renato Pontefice <renato.pontefice@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to find " on string
Date: Tue, 16 Sep 2014 06:35:47 -0700 (PDT)	[thread overview]
Message-ID: <90e73c07-3e68-42ab-8d93-2a17d210ebdd@googlegroups.com> (raw)
In-Reply-To: <mailman.8971.1410870417.1147.help-gnu-emacs@gnu.org>

Il giorno martedì 16 settembre 2014 14:30:59 UTC+2, Eric Abrahamsen ha scritto:
> Renato Pontefice <renato.pontefice@gmail.com> 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

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


  parent reply	other threads:[~2014-09-16 13:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-16 10:57 how to find " on string Renato Pontefice
2014-09-16 12:22 ` sokobania.01
2014-09-16 12:30 ` Eric Abrahamsen
     [not found] ` <mailman.8971.1410870417.1147.help-gnu-emacs@gnu.org>
2014-09-16 13:35   ` Renato Pontefice [this message]
2014-09-16 14:27     ` sokobania.01
2014-09-16 14:54       ` Renato Pontefice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=90e73c07-3e68-42ab-8d93-2a17d210ebdd@googlegroups.com \
    --to=renato.pontefice@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.