Comment 18 for bug 1107037

Revision history for this message
Tom Willemse (c-tom) wrote : Re: [Bug 1107037] Re: python-mode very slow

Andreas Roehler <email address hidden> writes:

>> Inside what? If they're in my code please let me know and I will try
>> to fix it.
>
> it relats to the (beginning-of-def-or-class) call now, which is wrong
> IMHO as might reach BOB while just called from inside a string, needed
> is beginning-of-statement.

I agree that that would be wrong, but in `py-doc-string-p' I'm using
`py-beginning-of-statement' to go to the beginning of the current
statement and then check if where at beginning of buffer, def or class
by using `bobp' and `py-beginning-of-def-or-class-p', is this not
correct?