emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: syntax-ppss bug?


From: Stefan Monnier
Subject: Re: syntax-ppss bug?
Date: Mon, 24 Apr 2006 17:26:02 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> The job of parse-partial-sexp is to describe the changes from point A
> to point B.  When it scans from a place deep within parens into a
> place less deep, it should return a negative value.  That value is
> accurate as an answer--to this question.

> However, syntax-ppss is supposed to describe the status with respect
> to top level.

Right.  But in this particular case, it correctly return the same as
(parse-partial-sexp (point-min) (point)).

> If the depth value is negative, it means that something is wrong.

Indeed: the text has more closing parens than opening ones.

> Perhaps this is only possible when the code is nonsensical.

Exactly.

> Can you document this, in the docs of syntax-ppss in the Lisp manual?

OK,


        Stefan




reply via email to

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