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: Sun, 23 Apr 2006 20:24:30 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I tracked down the problem below to an infloop in
> python-beginning-of-statement which occurs because syntax-ppss returns
> -1 as the depth.  I think that is the wrong value.  Would you please
> investigate?

It does sound like an incorrect value indeed.

> Is it ever legitimate for syntax-ppss to return negative depth values?
> I think it is not.  So I think if it ever does so, it is a reason to
> do something to cope with confusion.  Perhaps it should pick a
> different defun start, or replace the negative value with 0, or
> just signal an error.

> I suspect this Python program was garbled by introduction of
> incorrect line breaks, and that it is actually invalid.  Do you know?

> If true, that doesn't change the fact that this is a bug in Emacs, but
> it does mean that there is no need to worry about what indentation is
> "correct" for this case.

> Please work on this and respond.

I'll look at it and get back to you,


        Stefan




reply via email to

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