From: Yilin Wei <yilin.wei10@gmail.com>
To: 36700@debbugs.gnu.org
Subject: bug#36700: 27.0.50; python-mode beginning-of-defun broken
Date: Wed, 17 Jul 2019 00:59:38 +0100 [thread overview]
Message-ID: <CACHH8Cn868CzXU3L+LXHizoM_fDK27n3Uu2u-7EDT9kEPU7b3Q@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
Hi,
The function `beginning-of-defun` seems to be be broken if
there is a nested class definition in the function.
I think this also means that `(thing-at-point 'defun)` isn't working
as expected.
Behaviour:
def moo():
class Test:
pass
<-
When the cursor is at the location marked, running (beginning-of-defun)
makes the cursor go to the wrong location, shown below, instead of to
the beginning of the def.
def moo():
<- class Test:
pass
Yilin
[-- Attachment #2: Type: text/html, Size: 609 bytes --]
next reply other threads:[~2019-07-16 23:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-16 23:59 Yilin Wei [this message]
2019-07-17 0:49 ` bug#36700: 27.0.50; python-mode beginning-of-defun broken Noam Postavsky
2020-08-26 0:26 ` Stefan Kangas
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=CACHH8Cn868CzXU3L+LXHizoM_fDK27n3Uu2u-7EDT9kEPU7b3Q@mail.gmail.com \
--to=yilin.wei10@gmail.com \
--cc=36700@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).