Subject: bug#19665: closed (25.0.50; python.el: mark defun bug when point is in class statement)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 06 Jul 2015 04:06:04 +0000

Your bug report

#19665: 25.0.50; python.el: mark defun bug when point is in class statement

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
19665: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19665
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: 25.0.50; python.el: mark defun bug when point is in class statement
From: [email-masked] (Fabián Ezequiel Gallina)
To: [email-masked]
Date: Mon, 06 Jul 2015 01:05:37 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Fix pushed at a5e39bf in master.

--
Thanks,
Fabián.

Subject: 25.0.50; python.el: mark defun bug when point is in class statement
From: Carlos Pita <[email-masked]>
To: [email-masked]
Cc: Fabian Ezequiel Gallina <[email-masked]>
Date: Fri, 23 Jan 2015 13:12:14 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Specifically, try the example below:

```
class A: pass

class B:

    def __init__(self): pass

    def fun(self): pass

class C: pass
```

1) If point is in the line immediately after "class B:", then C-M-h will
select the entire class B definition, as expected.

2) If point is in the line "class B:", then C-M-h will select just the
definition of the fun method, which is entirely unexpected!

Cheers
--
Carlos