From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: How to really escape a double quote? Date: Fri, 25 Feb 2011 01:00:17 +0100 Organization: Organization?!? Message-ID: <87sjvdq8z2.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1298594451 31865 80.91.229.12 (25 Feb 2011 00:40:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 Feb 2011 00:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 25 01:40:46 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Psljh-0004sZ-OM for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Feb 2011 01:40:45 +0100 Original-Received: from localhost ([127.0.0.1]:34290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Psljh-0005dV-7P for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Feb 2011 19:40:45 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news2.arglkargh.de!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ud5KTXHL+3Pof6fx6RQiCkDcrT0= Original-Lines: 22 Original-NNTP-Posting-Date: 25 Feb 2011 01:00:17 CET Original-NNTP-Posting-Host: c6ba19f6.newsspool2.arcor-online.net Original-X-Trace: DXC=AW7AGM2EARBI7\_^6>c20JA9EHlD; 3YcB4Fo<]lROoRA8kF List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79456 Archived-At: "MarkS." 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