--- Begin Message ---
Subject: |
Re: python.el: block is ended prematurely |
Date: |
Fri, 25 Mar 2005 00:52:44 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3 (gnu/linux) |
You wrote:
> Hallöchen!
>
> python.el ends the current block if a line starts with "return".
> However, it doesn't checkt whether this is followed with "_". So,
> if I write
>
> return_count = 4
>
> python.el closes the current block wrongly.
>
> Tschö,
> Torsten.
Could you report it to address@hidden, please. I can't
make changes. There are some other things that need fixing for
python.el which I haven't been able to get done, but it is worth a
try...
I fixed it like this: First modify rx.el to add `symbol-start' and
`symbol-end' for \_< and \_>. (It is a bug that they aren't
included.) Then use `symbol-end' instead of `word-end' in function
`python-close-block-statement-p'. (In my version I've used
symbol-{start,end} in some other places, like the font-lock keywords.)
--- End Message ---