fgallina/python.el — Issue #64: C-M-e (end-of-defun) is blocked by a top level assignment
Author: tkf
Created: 2012-02-22 00:30:57+00:00
State: open

Thanks for the great elisp! I switched from python-mode.el and everything works great, but I found something which can make it better.

Suppose I have the following in buffer.

def fuoc1():
pass

def func2():
pass

string = "top level string"

def func3():
pass

I can go from func3 to func1 when I press C-M-a three times from the end of the buffer. However, I cannot go from func1 to func3 by pressing C-M-e three times from the beginning of the buffer. It is stopped at the top level assignment of string. C-M-e is also stopped by a block like if/try/for... whereas C-M-a works without problem.