From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: syntax-ppss
Date: Fri, 10 Jun 2005 18:20:42 -0400 [thread overview]
Message-ID: <87d5qtam6s.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1DgX9l-0006Pj-Vz@fencepost.gnu.org> (Richard Stallman's message of "Thu, 09 Jun 2005 20:13:53 -0400")
> -classes mentioned in @var{syntaxes} (a string of syntax code
> +classes mentioned in @var{syntaxes} (a string of syntax classes
> characters). It stops when it encounters the end of the buffer, or
> It needs to be "class", singular.
> +@defun syntax-ppss &optional pos
> +This function returns the state of the parser at position @var{pos} if
> +started with a default start state at the beginning of the buffer.
> +I.e., it is equivalent to @code(parse-partial-sexp (point-min)
> +@var{pos}). The difference is that @code{syntax-ppss} uses a cache to
> +speed up the computation. This has as a side-effect that the 2nd and
> +6th value of the returned state cannot be relied upon.
> +@end defun
> +
> Clearer would be
> This function returns the state that the parser would have at
> position @var{pos}, if it were started with a default start state
> at the beginning of the buffer. Thus, it is equivalent to
> @code(parse-partial-sexp (point-min) @var{pos}), except that
> @code{syntax-ppss} uses a cache to speed up the
> computation. Also, the 2nd and 6th value of the returned state are
> not meaningful.
> @end defun
> Which two values does "the 2nd and 6th value" refer to? It isn't
> clear to me; I am not sure whether they are counted 0-origin or
> 1-origin. It won't be clear to the reader, either.
> So please give descriptions of them, not just numbers.
Thanks, fixed and installed.
Stefan
next prev parent reply other threads:[~2005-06-10 22:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 17:59 syntax-ppss Richard Stallman
2005-06-08 22:37 ` syntax-ppss Stefan Monnier
2005-06-10 0:13 ` syntax-ppss Richard Stallman
2005-06-10 22:20 ` Stefan Monnier [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-14 15:12 syntax-ppss Richard Stallman
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=87d5qtam6s.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--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).