bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58023: 29.0.50; end-of-defun in python-mode does not work with neste


From: Andreas Röhler
Subject: bug#58023: 29.0.50; end-of-defun in python-mode does not work with nested function with multi-line arguments
Date: Fri, 23 Sep 2022 17:19:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0


Am 23.09.22 um 14:01 schrieb kobarity:
Hi,

The following steps will place the point at the end of the class C,
not the end of the method a.

1. emacs -Q
2. Load the following Python file using M-x find-file

#+begin_src python
class C:
     def a(self
           ):
         pass

     def b(self):
         pass
#+end_src

3. C-n (M-x forward-line)
4. C-M-e (M-x end-of-defun)

This happens when the method (nested function) has multi-line
arguments.


Probably not a big thing WRT editing purpose: For me method "a" starts with the "d" of def.

From second line, BOL, reaching the end of class seems okay.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]