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: Supplying a default initial STATE to parse-partial-sexp. What about elt. 9? Date: Tue, 30 Jun 2009 22:22:47 +0200 Message-ID: References: <20090630162036.GB3787@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246393472 20608 80.91.229.12 (30 Jun 2009 20:24:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2009 20:24:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 30 22:24:25 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MLjsO-0004bU-U9 for ged-emacs-devel@m.gmane.org; Tue, 30 Jun 2009 22:24:25 +0200 Original-Received: from localhost ([127.0.0.1]:41833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLjsO-0000cc-By for ged-emacs-devel@m.gmane.org; Tue, 30 Jun 2009 16:24:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLjqv-0008Rh-GV for emacs-devel@gnu.org; Tue, 30 Jun 2009 16:22:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLjqq-0008Om-M8 for emacs-devel@gnu.org; Tue, 30 Jun 2009 16:22:53 -0400 Original-Received: from [199.232.76.173] (port=57490 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLjqq-0008Oh-I1 for emacs-devel@gnu.org; Tue, 30 Jun 2009 16:22:48 -0400 Original-Received: from smtp-03.vtx.ch ([212.147.0.64]:52066) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLjqq-00077g-Av for emacs-devel@gnu.org; Tue, 30 Jun 2009 16:22:48 -0400 Original-Received: from alfajor.home (dyn.83-228-217-245.dsl.vtx.ch [83.228.217.245]) by smtp-03.vtx.ch (VTX Services SA) with ESMTP id 580EA296D2F; Tue, 30 Jun 2009 22:22:47 +0200 (CEST) Original-Received: by alfajor.home (Postfix, from userid 20848) id 3846F64346; Tue, 30 Jun 2009 22:22:47 +0200 (CEST) In-Reply-To: <20090630162036.GB3787@muc.de> (Alan Mackenzie's message of "Tue, 30 Jun 2009 16:20:37 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:111836 Archived-At: > To avoid an irritating special case, I'd like to initialize the state to > a default value, rather than passing in nil. Something like: I'm not sure what you mean by special case. Usually I use nil for that purpose and it works fine, since all the operations I use on the state treat nil as '(nil . nil) > However, this leaves me a bit uneasy about the 9th element, which is > documented as "Intermediate data for continuation of parsing (subject to > change)". Is it valid to set elt 9 as nil, or will this cause some sort > of malfunction or signal in parse-partial-sexp? Yes, nil is fine there as well: it'll work just dandy! Stefan