Subject: Re: bug#37828: 26.3; python-shell-send-defun doesn't find the (whole) definition

From: Tomas Nordin <[email-masked]>
Date: Thu, 24 Oct 2019 21:21:48 +0200

Hello Per

Per Starbäck <[email-masked]> writes:

> With emacs 26.3.
>
> There are two related bugs which makes python-shell-send-defun
> sometimes not send the right contents.
>
> == reproduce the first one ==
>
> $ emacs -Q /tmp/newfile.py
> C-c C-p                         [start python process]
> def foo(): RET                  [define a ...]
> pass RET                        [... python function]
> C-M-x                           [python-shell-send-defun]
>
> In the echo area it says "Sent:    pass..."
> because only that line was sent. Not the whole definition, and the
> function is not defined in the inferior python.

I think this is reported by Bug#30822 and fixed in master.

Best regards
--
Tomas