From: kobarity <kobarity@gmail.com>
To: 55808@debbugs.gnu.org
Subject: bug#55808: 29.0.50; If a Python class is on the first line, mark-defun does not mark the entire class
Date: Sat, 25 Jun 2022 23:01:20 +0900 [thread overview]
Message-ID: <CAMQkrSr5Mx2tmyA_rvw4ZqBFqNv6btJSwnAeCZW=YXmK8h30HA@mail.gmail.com> (raw)
In-Reply-To: <CAMQkrSrjT_-4+zh+Tcd7Xv3K6YO=wp86hoGFA_A363pDE12Ayw@mail.gmail.com>
Hello,
I wrote:
> The following steps will mark only the method baz, not the entire
> class Foo.
>
> 1. emacs -Q
> 2. Load the following Python file using M-x find-file
>
> #+begin_src python
> class Foo:
> def bar():
> pass
>
> def baz():
> pass
> #+end_src
>
> 3. M-x mark-defun
>
> This issue happens only if the class is on the first line of the file.
It turned out that there was a bug in `python-nav-beginning-of-defun'.
Fixing the bug #56105 also resolved this issue #55808. So #55808 can
now be closed.
Thanks,
next prev parent reply other threads:[~2022-06-25 14:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-05 14:19 bug#55808: 29.0.50; If a Python class is on the first line, mark-defun does not mark the entire class kobarity
2022-06-25 14:01 ` kobarity [this message]
2022-06-25 14:51 ` 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='CAMQkrSr5Mx2tmyA_rvw4ZqBFqNv6btJSwnAeCZW=YXmK8h30HA@mail.gmail.com' \
--to=kobarity@gmail.com \
--cc=55808@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).