GNU bug report logs - #60466
30.0.50; python-shell-send-region fails when the region starts in the middle of the first line

Previous Next

Package: emacs;

Reported by: kobarity <kobarity <at> gmail.com>

Date: Sun, 1 Jan 2023 12:24:01 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 60466-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: kobarity <kobarity <at> gmail.com>
Cc: 60466-done <at> debbugs.gnu.org
Subject: Re: bug#60466: 30.0.50;
 python-shell-send-region fails when the region starts in the middle
 of the first line
Date: Sat, 07 Jan 2023 10:59:06 +0200
> Date: Sun, 01 Jan 2023 21:22:44 +0900
> From: kobarity <kobarity <at> gmail.com>
> 
> `python-shell-send-region' fails with the following error when the
> region starts in the middle of the first line.
> 
> Wrong type argument: wholenump, -1
> 
> This is caused by the code to insert the coding cookie in
> `python-shell-buffer-substring'.  I think that the current code
> assumes that the region begins at line beginning position.  However,
> there are some use-cases where the region starts in the middle of the
> line as discussed in #60142.  So I think the special treatment in case
> of point-min should be extended to case of first line.  Attached is a
> patch to implement this.

Thanks, installed on the emacs-29 branch, and closing the bug.




This bug report was last modified 2 years and 134 days ago.

Previous Next


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