From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Musings: Supposed places of safety, guaranteed by parse-partial-sexp are not safe. Date: Tue, 06 Dec 2011 08:50:31 -0500 Message-ID: References: <20111203232301.GD4566@acm.acm> <4EDB4E50.1060202@gmx.at> <4EDBA888.2060202@gmx.at> <20111205112549.GA3522@acm.acm> <4EDDEB3A.8020509@gmx.at> <20111206103311.GA3242@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323179457 3416 80.91.229.12 (6 Dec 2011 13:50:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2011 13:50:57 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 06 14:50:53 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RXvQ4-0003TG-8p for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2011 14:50:52 +0100 Original-Received: from localhost ([::1]:51063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXvQ3-0000tx-UJ for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2011 08:50:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXvPw-0000ra-5Q for emacs-devel@gnu.org; Tue, 06 Dec 2011 08:50:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXvPo-0004jM-Aj for emacs-devel@gnu.org; Tue, 06 Dec 2011 08:50:44 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:40751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXvPo-0004iX-3B for emacs-devel@gnu.org; Tue, 06 Dec 2011 08:50:36 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pB6DoW88023073; Tue, 6 Dec 2011 08:50:32 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 68399593FF; Tue, 6 Dec 2011 08:50:31 -0500 (EST) In-Reply-To: <20111206103311.GA3242@acm.acm> (Alan Mackenzie's message of "Tue, 6 Dec 2011 10:33:11 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4062=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4062> : streams <708310> : uri <1022766> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146506 Archived-At: > I think we should use the same approach as for escape characters: record > the fact in (nth 5 state) that we've passed one, but otherwise take no > action. I think I agree. But I suspect it's going to be painful to write the patch for it. It's probably going to be easier to store in (nth 5 state) a buffer position from where to pick up the parse. Stefan