help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to find " on string


From: Renato Pontefice
Subject: Re: how to find " on string
Date: Tue, 16 Sep 2014 06:35:47 -0700 (PDT)
User-agent: G2/1.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]