From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to really escape a double quote?
Date: Fri, 25 Feb 2011 01:00:17 +0100 [thread overview]
Message-ID: <87sjvdq8z2.fsf@lola.goethe.zz> (raw)
In-Reply-To: d348944b-2889-4669-9f65-e0be7ff4ed27@o14g2000prb.googlegroups.com
"MarkS." <throaway@yahoo.com> writes:
> This is a two part question, but both parts are looking for how to
> escape a double quote AND have it work with Emacs.
>
> I was looking for a way to make Emacs delete inside of delimiters the
> way Vim does. I found some code that some nice person had written. The
> key search line is like:
>
> (skip-chars-backward "^(<[“") (setq p1 (point))
>
> but there's no double quote, which is what I need most often. I looked
> up Emacs/lisp documentation on-line, and it said that I could escape a
> double-quote with a slash. So I tried changing the line to:
>
> (skip-chars-backward "\"^(<[“") (setq p1 (point))
^ loses its special meaning if it is not the first character of the
string. So move your escaped double-quote one position to the right.
--
David Kastrup
next prev parent reply other threads:[~2011-02-25 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 23:54 How to really escape a double quote? MarkS.
2011-02-25 0:00 ` David Kastrup [this message]
2011-02-25 0:05 ` MarkS.
2011-02-26 2:05 ` Le Wang
[not found] ` <mailman.0.1298685964.28733.help-gnu-emacs@gnu.org>
2011-02-26 4:04 ` MarkS.
2011-02-26 5:10 ` Le Wang
2011-02-26 8:55 ` Kevin Rodgers
[not found] ` <mailman.18.1298710549.28733.help-gnu-emacs@gnu.org>
2011-02-26 9:00 ` David Kastrup
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=87sjvdq8z2.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--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.