1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

Small cornercase fix to python-info-current-defun.

Returned the bad defun name when point was at the beginning of defun.
This commit is contained in:
Fabián Ezequiel Gallina 2012-05-17 00:03:12 -03:00 committed by Fabián Ezequiel Gallina
parent 6b4328531c
commit 327f0e8429

View 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)