From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:12 +0000 (-0300) Subject: Small cornercase fix to python-info-current-defun. X-Git-Tag: emacs-24.2.90~1199^2~573 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=327f0e84294143404ae7889a473c978fbd235378;p=emacs.git Small cornercase fix to python-info-current-defun. Returned the bad defun name when point was at the beginning of defun. --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 321bc5eb94a..b11741d4a68 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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)