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: Mon, 05 Dec 2011 09:01:53 -0500 Message-ID: References: <20111203232301.GD4566@acm.acm> <4EDB4E50.1060202@gmx.at> <4EDBA888.2060202@gmx.at> <4EDC759F.70801@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323093740 21416 80.91.229.12 (5 Dec 2011 14:02:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2011 14:02:20 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 05 15:02:15 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 1RXZ7X-00060i-5w for ged-emacs-devel@m.gmane.org; Mon, 05 Dec 2011 15:02:15 +0100 Original-Received: from localhost ([::1]:47353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXZ7W-0005AR-MP for ged-emacs-devel@m.gmane.org; Mon, 05 Dec 2011 09:02:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXZ7L-00050q-Da for emacs-devel@gnu.org; Mon, 05 Dec 2011 09:02:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXZ7G-00055C-Gw for emacs-devel@gnu.org; Mon, 05 Dec 2011 09:02:03 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:47694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXZ7G-000554-E4 for emacs-devel@gnu.org; Mon, 05 Dec 2011 09:01:58 -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 pB5E1r35008908; Mon, 5 Dec 2011 09:01:53 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 446B059048; Mon, 5 Dec 2011 09:01:53 -0500 (EST) In-Reply-To: <4EDC759F.70801@gmx.at> (martin rudalics's message of "Mon, 05 Dec 2011 08:41:19 +0100") 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.9286 : core <4062> : streams <708007> : uri <1022184> 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:146490 Archived-At: >>> What I meant was that the caller would have to care about (nth 5 ppss) >>> too, wherever she now looked only at (nth 3 ppss) and (nth 4 ppss). >> That's what I understood and my suggestion does address this issue (tho >> it means that (nth 5 ppss) will sometimes refer to a buffer position >> after (point) and sometimes before). > I still miss what you need (nth 5 ppss) for here. Is it for providing > the OLDSTATE argument in another call to `parse-partial-sexp'? Yes. Think of calling parse-partial-sexp twice, passing the first result to the second call, where the first result is in the middle of a "/*/". Stefan