]> git.eshelyaron.com Git - emacs.git/commit
Corrected implementations for python-{beginning,end}-of-defun functions.
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:11 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:11 +0000 (00:03 -0300)
commit0567effbae17635607455d23be90da9d02d744c7
tree35b424e9d33e15015301ecd934ef825444fe93a4
parentc806ea6e87c11d32840844798a2bd6166d1a72e1
Corrected implementations for python-{beginning,end}-of-defun functions.

When point is at beginning-of-defun, end-of-defun moves to the end of
the defun, even if it contains nested defuns. When point is at any
inner defun end-of-defun moves to the end of it, if another inner
defun exists at the same level point is moved to it.

For beginning-of-defun things are funkier, it would move backwards
following nested defuns in order. This will be fixed soon.

Note: Decorators are considered part of defuns.

Removed:
    * python-use-beginning-of-innermost-defun
    * python-beginning-of-innermost-defun-regexp

Renamed:
    * python-beginning-of-defun => python-nav-beginning-of-defun
    * python-beginning-of-defun-regexp => python-nav-beginning-of-defun-regexp
lisp/progmodes/python.el