> 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


_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to