GNU bug report logs - #13618
24.3.50; python-info-current-defun returns nil for a function without body

Previous Next

Package: emacs;

Reported by: Jorgen Schaefer <forcer <at> forcix.cx>

Date: Sun, 3 Feb 2013 11:18:01 UTC

Severity: normal

Found in version 24.3.50

Done: Fabián Ezequiel Gallina <fabian <at> anue.biz>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jorgen Schaefer <forcer <at> forcix.cx>
To: 13618 <at> debbugs.gnu.org
Subject: bug#13618: 24.3.50; python-info-current-defun returns nil for a function without body
Date: Sun, 03 Feb 2013 12:16:18 +0100
Hello!
The `python-info-current-defun' function only works in functions and
methods that have a body, which is a bit confusing while writing code:

def foo():
    _|_

M-: (python-info-current-defun) => nil

def foo():
    a_|_

M-: (python-info-current-defun) => "foo"

class Test(object):
    def __init__(self):
        _|_

M-: (python-info-current-defun) => nil

class Test(object):
    def __init__(self):
        a_|_

M-: (python-info-current-defun) => "Test.foo"


Regards,
        -- Jorgen




This bug report was last modified 12 years and 186 days ago.

Previous Next


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