From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: how to find " on string
Date: Tue, 16 Sep 2014 20:30:59 +0800 [thread overview]
Message-ID: <87k353karg.fsf@ericabrahamsen.net> (raw)
In-Reply-To: dee62383-7ccd-4549-9238-a6d7f8081e01@googlegroups.com
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
next prev parent reply other threads:[~2014-09-16 12:30 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 [this message]
[not found] ` <mailman.8971.1410870417.1147.help-gnu-emacs@gnu.org>
2014-09-16 13:35 ` Renato Pontefice
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=87k353karg.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--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.