unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: 58023@debbugs.gnu.org
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	[thread overview]
Message-ID: <946aa5e3-6899-b87a-028b-d1a50dd61086@easy-emacs.de> (raw)
In-Reply-To: <eke7r102paen.wl-kobarity@gmail.com>


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	other threads:[~2022-09-23 15:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23 12:01 bug#58023: 29.0.50; end-of-defun in python-mode does not work with nested function with multi-line arguments kobarity
2022-09-23 15:19 ` Andreas Röhler [this message]
2022-09-23 15:40 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=946aa5e3-6899-b87a-028b-d1a50dd61086@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=58023@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).