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: Honesty with parse-partial-sexp Date: Sat, 09 Dec 2006 15:20:39 -0500 Message-ID: References: <20061207185738.GA1607@muc.de> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165695666 14076 80.91.229.10 (9 Dec 2006 20:21:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2006 20:21:06 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 09 21:21:04 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gt8gs-0006KQ-Bc for ged-emacs-devel@m.gmane.org; Sat, 09 Dec 2006 21:20:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gt8gr-00031j-NB for ged-emacs-devel@m.gmane.org; Sat, 09 Dec 2006 15:20:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gt8gf-000312-Nt for emacs-devel@gnu.org; Sat, 09 Dec 2006 15:20:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gt8gf-00030j-2g for emacs-devel@gnu.org; Sat, 09 Dec 2006 15:20:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gt8ge-00030f-UR for emacs-devel@gnu.org; Sat, 09 Dec 2006 15:20:44 -0500 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gt8ga-0006Sn-4L; Sat, 09 Dec 2006 15:20:40 -0500 Original-Received: from pastel.home ([70.55.82.193]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061209202039.UBHE11361.tomts43-srv.bellnexxia.net@pastel.home>; Sat, 9 Dec 2006 15:20:39 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 219D3846D; Sat, 9 Dec 2006 15:20:39 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sat\, 09 Dec 2006 13\:25\:47 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63528 Archived-At: >> ! This element is a list. Its car is the character position of the >> ! start of the outermost parenthetical grouping containing the stopping >> ! point; @code{nil} if none. >> Isn't it really the outermost parenthetical grouping that begins in >> the text that was parsed? > I believe Alan's text is more correct, although it depends on the state > argument you passed into parse-partial-sexp. > His text is correct if you pass a STATE argument that reflects parsing > since the beginning of the buffer. I think my text is always correct, > with the understanding that "the text that was parsed" includes > previous calls carried over in the STATE argument. Indeed. And I'm glad I'm not the one trying to explain this in the doc ;-) Stefan