GNU bug report logs - #39398
26.3; `python-shell-buffer-substring` does not respect region

Previous Next

Package: emacs;

Reported by: Gaby Launay <gaby.launay <at> protonmail.com>

Date: Sun, 2 Feb 2020 21:14:01 UTC

Severity: normal

Tags: fixed

Found in version 26.3

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 39398 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gaby Launay <gaby.launay <at> protonmail.com>
Cc: 39398 <at> debbugs.gnu.org
Subject: Re: bug#39398: 26.3; `python-shell-buffer-substring` does not
 respect region
Date: Tue, 27 Oct 2020 20:30:28 +0100
Gaby Launay <gaby.launay <at> protonmail.com> writes:

> `python-shell-send-region` uses `python-shell-buffer-substring` to
> determine which part of the buffer to send to the python interpreter. At
> the moment, it does not respect the position of the beginning of the
> region but instead use the beginning of the line. This is great to avoid
> sending invalid pieces of lines, but does not allow to evaluate portion
> of lines.

Yes, that seems rather odd -- as far as I can see, the command is not
documented to behave in this way, but says it's sending the region.

So I've changed it as you suggested, and I guess we'll see whether
there's any protests.

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




This bug report was last modified 4 years and 258 days ago.

Previous Next


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