From: kobarity <kobarity@gmail.com>
To: Pierre Mercatoris <mercatorispierre@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
Augusto Stoffel <arstoffel@gmail.com>,
60142@debbugs.gnu.org
Subject: bug#60142: 28.1; python.el Incorrect region when python-shell-send-region from indented code
Date: Mon, 19 Dec 2022 07:25:46 +0900 [thread overview]
Message-ID: <CAMQkrSrzPu8=HmUgezovN5RVavXKO+iX_bZ-nE6C8=ZaCdHwKw@mail.gmail.com> (raw)
In-Reply-To: <CAK4ZG+4AF+PndOb6J-ZXU_GmdoKC6w8udOCRguUaYnGG-HtSFA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 915 bytes --]
Pierre Mercatoris <mercatorispierre@gmail.com>:
> > ```python
>> > if True:
>> > if True:
>> > a = "test"
>> > ```
>> >
>> > If I select the first `True` and `python-shell-send-region`, it will
>> > correctly send it to the consol and print `True`.
>> >
>> > Now if I do the same thing with the second `True` it will throw an
>> > error: `IndentationError: expected an indented block after 'if'
>> > statement on line 1` Although it would also reffer to unexpected block
>> > after `if` even it it were `for`, `try`, ...
>> >
>> > If I select the `a` or `a = "test"` it will correctly send it to the
>> > console, however it won't echo the evaluation of the statement.
>> >
>> > If I select the string "test" and send, it will throw the same error as
>> > the second True.
>
>
Hi,
I could reproduce and workaround the bug. But could you give me a few more
days to consider well and revise the patch?
[-- Attachment #2: Type: text/html, Size: 1723 bytes --]
next prev parent reply other threads:[~2022-12-18 22:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 22:54 bug#60142: 28.1; python.el Incorrect region when python-shell-send-region from indented code pmercatoris
2022-12-18 10:39 ` Eli Zaretskii
2022-12-18 15:04 ` Pierre Mercatoris
2022-12-18 22:25 ` kobarity [this message]
2022-12-19 3:28 ` Eli Zaretskii
2022-12-19 10:25 ` Augusto Stoffel
2022-12-22 15:01 ` kobarity
2022-12-30 13:14 ` Pierre Mercatoris
2022-12-30 15:33 ` kobarity
2022-12-30 16:36 ` Pierre Mercatoris
2022-12-31 7:23 ` kobarity
2022-12-31 8:17 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMQkrSrzPu8=HmUgezovN5RVavXKO+iX_bZ-nE6C8=ZaCdHwKw@mail.gmail.com' \
--to=kobarity@gmail.com \
--cc=60142@debbugs.gnu.org \
--cc=arstoffel@gmail.com \
--cc=eliz@gnu.org \
--cc=mercatorispierre@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).