all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
Subject: State argument of `parse-partial-sexp'
Date: Mon, 15 May 2006 11:46:04 +0200	[thread overview]
Message-ID: <wkmzdj1uzn.fsf@gmx.at> (raw)

Elisp manual and doc-string of `parse-partial-sexp' imply that the 8th
and 9th element are not needed (can be omitted) in the state argument.
I think they are needed.  Hence, I propose the following patches:


2006-05-15  Martin Rudalics  <rudalics@gmx.at>

	* syntax.texi (Parsing Expressions): Fix description of
	`parse-partial-sexp'.

*** syntax.texi	Mon May  1 10:08:56 2006
--- syntax.texi	Mon May 15 11:04:44 2006
***************
*** 661,670 ****
  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}.

  The result is a list of ten elements describing the final state of
--- 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.  The return value of one
! call may be used to initialize the state of the parse on another call to
  @code{parse-partial-sexp}.

  The result is a list of ten elements describing the final state of
***************
*** 724,730 ****

  @end enumerate

! Elements 0, 3, 4, 5, 7 and 9 are significant in the argument
  @var{state}.

  @cindex indenting with parentheses
--- 723,729 ----

  @end enumerate

! Elements 0, 3, 4, 5, 7, 8 and 9 are significant in the argument
  @var{state}.

  @cindex indenting with parentheses


2006-05-15  Martin Rudalics  <rudalics@gmx.at>

	* syntax.c (`parse-partial-sexp'): Fix doc-string.

*** syntax.c	Mon May  1 10:08:58 2006
--- syntax.c	Mon May 15 11:06:54 2006
***************
*** 3043,3050 ****
  Fourth arg STOPBEFORE non-nil means stop when come to
   any character that starts a sexp.
  Fifth arg OLDSTATE is a list like what this function returns.
!  It is used to initialize the state of the parse.  Elements number 1, 2, 6
!  and 8 are ignored; you can leave off element 8 (the last) entirely.
  Sixth arg COMMENTSTOP non-nil means stop at the start of a comment.
   If it is symbol `syntax-table', stop after the start of a comment or a
   string, or after end of a comment or a string.  */)
--- 3043,3050 ----
  Fourth arg STOPBEFORE non-nil means stop when come to
   any character that starts a sexp.
  Fifth arg OLDSTATE is a list like what this function returns.
!  It is used to initialize the state of the parse.  Elements number 1, 2,
!  and 6 are ignored.
  Sixth arg COMMENTSTOP non-nil means stop at the start of a comment.
   If it is symbol `syntax-table', stop after the start of a comment or a
   string, or after end of a comment or a string.  */)

             reply	other threads:[~2006-05-15  9:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15  9:46 martin rudalics [this message]
2006-05-15 14:33 ` State argument of `parse-partial-sexp' Stefan Monnier
2006-05-16  6:37   ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wkmzdj1uzn.fsf@gmx.at \
    --to=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.