From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: State argument of `parse-partial-sexp' Date: Tue, 16 May 2006 08:37:16 +0200 Message-ID: <4469731C.8060204@gmx.at> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060901020302090203060507" X-Trace: sea.gmane.org 1147766772 713 80.91.229.2 (16 May 2006 08:06:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 May 2006 08:06:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 10:06:09 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FfuZC-0005up-PE for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 10:06:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfuZC-0003VN-Ba for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 04:06:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfuYy-0003TQ-WE for emacs-devel@gnu.org; Tue, 16 May 2006 04:05:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfuYx-0003S0-FX for emacs-devel@gnu.org; Tue, 16 May 2006 04:05:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfuYx-0003Ro-Af for emacs-devel@gnu.org; Tue, 16 May 2006 04:05:51 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FfubX-0005Pk-Uz for emacs-devel@gnu.org; Tue, 16 May 2006 04:08:32 -0400 Original-Received: (qmail invoked by alias); 16 May 2006 08:05:48 -0000 Original-Received: from N874P004.adsl.highway.telekom.at (EHLO [62.47.53.36]) [62.47.53.36] by mail.gmx.net (mp035) with SMTP; 16 May 2006 10:05:48 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Stefan Monnier In-Reply-To: X-Y-GMX-Trusted: 0 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:54564 Archived-At: This is a multi-part message in MIME format. --------------060901020302090203060507 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > - don't specify the length of the state argument: just say it's the same as > the return value. The state argument can be the empty list, I'd say "same form" should suffice here. > - specify the ignored elements rather than the non-ignored ones. > The list of ignored ones is much less likely to change. Elementary. I attached a patch. --------------060901020302090203060507 Content-Type: text/plain; name="syntax-texi.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="syntax-texi.patch" *** syntax.texi Mon May 1 10:08:56 2006 --- syntax.texi Tue May 16 08:21:20 2006 *************** *** 661,669 **** string, or the end of a comment or a string, whichever comes first. @cindex parse state ! The fifth argument @var{state} is a ten-element list of the same form ! as the value of this function, described below. (It is OK to omit the ! last two elements of this list.) The return value of one call may be used to initialize the state of the parse on another call to @code{parse-partial-sexp}. --- 661,668 ---- string, or the end of a comment or a string, whichever comes first. @cindex parse state ! The fifth argument @var{state} is a list of the same form as the value ! of this function, described below. The return value of one call may be used to initialize the state of the parse on another call to @code{parse-partial-sexp}. *************** *** 724,731 **** @end enumerate ! Elements 0, 3, 4, 5, 7 and 9 are significant in the argument ! @var{state}. @cindex indenting with parentheses This function is most often used to compute indentation for languages --- 723,729 ---- @end enumerate ! Elements 1, 2, and 6 are ignored in the argument @var{state}. @cindex indenting with parentheses This function is most often used to compute indentation for languages --------------060901020302090203060507 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------060901020302090203060507--