[Top][All Lists]

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

Re: How to really escape a double quote?

From: David Kastrup
Subject: Re: How to really escape a double quote?
Date: Fri, 25 Feb 2011 01:00:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"MarkS." <address@hidden> 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

reply via email to

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