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

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Fri, 23 Jan 2015 16:13:02 UTC

Severity: normal

Tags: notabug, patch

Merged with 19748

Fixed in version 25.0.50

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
Cc: tracker <at> debbugs.gnu.org
Subject: bug#19665: closed (25.0.50; python.el: mark defun bug when point
 is in class statement)
Date: Mon, 06 Jul 2015 04:06:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 06 Jul 2015 01:05:37 -0300
with message-id <87wpyegcby.fsf <at> gnu.org>
and subject line 25.0.50; python.el: mark defun bug when point is in class statement
has caused the debbugs.gnu.org bug report #19665,
regarding 25.0.50; python.el: mark defun bug when point is in class statement
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
19665: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19665
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Carlos Pita <carlosjosepita <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Fabian Ezequiel Gallina <galli.87 <at> gmail.com>
Subject: 25.0.50; python.el: mark defun bug when point is in class statement
Date: Fri, 23 Jan 2015 13:12:14 -0300
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


[Message part 3 (message/rfc822, inline)]
From: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
To: 19665-done <at> debbugs.gnu.org
Subject: 25.0.50; python.el: mark defun bug when point is in class statement
Date: Mon, 06 Jul 2015 01:05:37 -0300
Fix pushed at a5e39bf in master.

--
Thanks,
Fabián.


This bug report was last modified 10 years and 16 days ago.

Previous Next


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