all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: kobarity <kobarity@gmail.com>
Cc: 60466-done@debbugs.gnu.org
Subject: 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	[thread overview]
Message-ID: <83cz7qu3dx.fsf@gnu.org> (raw)
In-Reply-To: <eke7zgb2v3zf.wl-kobarity@gmail.com> (message from kobarity on Sun, 01 Jan 2023 21:22:44 +0900)

> Date: Sun, 01 Jan 2023 21:22:44 +0900
> From: kobarity <kobarity@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.





      reply	other threads:[~2023-01-07  8:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-01 12:22 bug#60466: 30.0.50; python-shell-send-region fails when the region starts in the middle of the first line kobarity
2023-01-07  8:59 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83cz7qu3dx.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=60466-done@debbugs.gnu.org \
    --cc=kobarity@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.