GNU bug report logs - #36700
27.0.50; python-mode beginning-of-defun broken

Previous Next

Package: emacs;

Reported by: Yilin Wei <yilin.wei10 <at> gmail.com>

Date: Wed, 17 Jul 2019 00:44:02 UTC

Severity: minor

Tags: notabug

Found in version 27.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Yilin Wei <yilin.wei10 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; python-mode beginning-of-defun broken
Date: Wed, 17 Jul 2019 00:59:38 +0100
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.