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

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

bug#36700: 27.0.50; python-mode beginning-of-defun broken


From: Yilin Wei
Subject: bug#36700: 27.0.50; python-mode beginning-of-defun broken
Date: Wed, 17 Jul 2019 00:59:38 +0100



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

reply via email to

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