From 327f0e84294143404ae7889a473c978fbd235378 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:12 -0300 Subject: [PATCH] Small cornercase fix to python-info-current-defun. Returned the bad defun name when point was at the beginning of defun. --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5