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

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

bug#39398: 26.3; `python-shell-buffer-substring` does not respect region


From: Lars Ingebrigtsen
Subject: bug#39398: 26.3; `python-shell-buffer-substring` does not respect region
Date: Wed, 28 Oct 2020 09:34:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Glenn Morris <rgm@gnu.org> writes:

> This causes the tests that were added for https://debbugs.gnu.org/21086
> to fail.

This should now be fixed.

It's debatable, I guess, whether the old or the new `C-c C-r' behaviour
makes sense.  I think the command should do what it says: Send the
region to the python process...  but that means that the region should
be valid.  For instance:

if 1:
    print foo()

Sending "print foo()" is not valid; you need the entire line (because of
the True wrapping).  But that means that it's impossible to send
something later on the line, like just "foo()" (which is valid).

So we could revert the new patch and go back to the "send the entire
line" behaviour, but then we should actually document it at least.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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