]> git.eshelyaron.com Git - emacs.git/commitdiff
Small cornercase fix to python-info-current-defun.
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:12 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:12 +0000 (00:03 -0300)
Returned the bad defun name when point was at the beginning of defun.

lisp/progmodes/python.el

index 321bc5eb94aac5e3b74d2a2507bf37f80026e41a..b11741d4a68219f7f2cd34de1ea3fb6902314459 100644 (file)
@@ -1942,8 +1942,8 @@ not inside a defun."
     (save-restriction
       (widen)
       (save-excursion
-        (forward-comment -1)
         (goto-char (line-end-position))
+        (forward-comment -1)
         (while (and (not (equal 0 (current-indentation)))
                     (not (python-beginning-of-defun-function 1 t)))
           (when (or (not min-indent)