emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Honesty with parse-partial-sexp


From: Stefan Monnier
Subject: Re: Honesty with parse-partial-sexp
Date: Sat, 09 Dec 2006 15:20:39 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

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

Indeed.  And I'm glad I'm not the one trying to explain this in the doc ;-)


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]