[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56105: 29.0.50; python-nav-beginning-of-defun does not handle nested
From: |
Lars Ingebrigtsen |
Subject: |
bug#56105: 29.0.50; python-nav-beginning-of-defun does not handle nested functions properly |
Date: |
Tue, 21 Jun 2022 13:37:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
kobarity <kobarity@gmail.com> writes:
>
> Attached is a patch to fix this issue. In this patch, min-indentation
> is introduced to keep track of the minimum indentation of the current
> function body to distinguish nested defuns from current defun.
> (python-info-looking-at-beginning-of-defun) in the initialization of
> min-indentation is a special case. In this case,
> python-nav-beginning-of-defun is expected to navigate to the previous
> defun of the same level, not the enclosing defun.
Thanks; pushed to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no