unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: acm@muc.de, emacs-devel@gnu.org
Subject: Re: Honesty with parse-partial-sexp
Date: Sat, 09 Dec 2006 13:25:47 -0500	[thread overview]
Message-ID: <E1Gt6tP-0006Wp-U0@fencepost.gnu.org> (raw)
In-Reply-To: <jwvac1xemwi.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Fri, 08 Dec 2006 23:04:58 -0500)

    >     ! 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.

  reply	other threads:[~2006-12-09 18:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-07 17:47 Honesty with parse-partial-sexp Alan Mackenzie
2006-12-09  1:26 ` Richard Stallman
2006-12-09  4:04   ` Stefan Monnier
2006-12-09 18:25     ` Richard Stallman [this message]
2006-12-09 20:20       ` Stefan Monnier
2006-12-09  9:47   ` martin rudalics
2006-12-09 12:56     ` Miles Bader
2006-12-09 18:26     ` Richard Stallman
2006-12-09 20:30       ` Stefan Monnier
2006-12-11  1:05         ` Richard Stallman
2006-12-12  2:41           ` Stefan Monnier
2006-12-12 19:01             ` Alan Mackenzie
2006-12-12 19:29               ` Stefan Monnier
2006-12-12 19:53                 ` Alan Mackenzie

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1Gt6tP-0006Wp-U0@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).