python-end-of-defun-function now works correctly when comments are not indented properly.
commitcd1ed6c8f4a50c0bc499bdcf78bbd4e39bdfc4d2
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:36 +0000 (17 00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:36 +0000 (17 00:03 -0300)
treefaebce2fe4a1076e5d5ea6c8d373d463b769124b
parentdc4f2e532630fa58381b9d3e52350279c98e89b7
python-end-of-defun-function now works correctly when comments are not indented properly.

Calling `end-of-defun' on a python file will now do the correct thing,
even for cases like this:

    def fib(n):
        if n < 2:
    #       base cases
            return n
        else:
            return fib(n - 2) + fib(n - 1)
lisp/progmodes/python.el