GNU bug report logs - #38426
27.0.50; [PATCH] * python.el: new function python-shell-send-statement

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: <lin.sun@HIDDEN>; Keywords: patch; dated Fri, 29 Nov 2019 15:06:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 38426 <at> debbugs.gnu.org:


Received: (at 38426) by debbugs.gnu.org; 14 Dec 2019 12:17:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 14 07:17:41 2019
Received: from localhost ([127.0.0.1]:35013 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ig6Me-0007fF-91
	for submit <at> debbugs.gnu.org; Sat, 14 Dec 2019 07:17:41 -0500
Received: from eggs.gnu.org ([209.51.188.92]:39970)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ig6Mc-0007ey-IJ
 for 38426 <at> debbugs.gnu.org; Sat, 14 Dec 2019 07:17:39 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59436)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ig6MX-0008Mc-5Q; Sat, 14 Dec 2019 07:17:33 -0500
Received: from [176.228.60.248] (port=4630 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ig6MW-0006RH-IT; Sat, 14 Dec 2019 07:17:32 -0500
Date: Sat, 14 Dec 2019 14:17:16 +0200
Message-Id: <834ky36r03.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: lin.sun@HIDDEN
In-reply-to: <046101d5a690$b8e69bc0$2ab3d340$@zoom.us> (lin.sun@HIDDEN)
Subject: Re: 27.0.50;
 [PATCH] * python.el: new function python-shell-send-statement
References: <046101d5a690$b8e69bc0$2ab3d340$@zoom.us>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38426
Cc: larsi@HIDDEN, 38426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: <lin.sun@HIDDEN>
> Date: Fri, 29 Nov 2019 16:40:55 +0800
> 
> >From 61db0e91094297ddca302eaf691cf5b4ff82ebf6 Mon Sep 17 00:00:00 2001
> From: "lin.sun" <lin.sun@HIDDEN>
> Date: Fri, 29 Nov 2019 03:10:12 -0500
> Subject: [PATCH] * python.el: new function python-shell-send-statement
> 
> Add new function `python-shell-send-statement' and bind to key "C-c
> C-e" for sending statement under cursor to inferior Python process.

Thanks.  A few comments below:

> +(defun python-shell-send-statement (&optional send-main msg)
> +  "Send the statement delimited by `python-nav-beginning-of-statement' and

The first line of a doc string should be a complete sentence, and it
should mention the function's arguments.

> +`python-nav-end-of-statement' to inferior Python process. When optional
                                                           ^^
Our convention is to leave 2 spaces between sentences in documentation
and comments, per US English rules.

> +                                                         When optional
> +argument MSG is non-nil, forces display of a user-friendly message if
> there's
> +no process running; default to t when called interactively. If there is
> region
> +be activated, it present as `python-shell-send-region'."

These lines are too long, please wrap them to make them shorter,
preferably no more than 75 characters.

Please also provide a ChangeLog style commit log message, as described
in CONTRIBUTE, and please mention the bug number there.

And finally, this new command needs to be mentioned in NEWS, under
"Python mode".

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38426; Package emacs. Full text available.

Message received at 38426 <at> debbugs.gnu.org:


Received: (at 38426) by debbugs.gnu.org; 13 Dec 2019 07:57:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 13 02:57:04 2019
Received: from localhost ([127.0.0.1]:32960 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iffou-00033X-C4
	for submit <at> debbugs.gnu.org; Fri, 13 Dec 2019 02:57:04 -0500
Received: from mail-pl1-f174.google.com ([209.85.214.174]:45429)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lin.sun@HIDDEN>) id 1iffor-000331-O0
 for 38426 <at> debbugs.gnu.org; Fri, 13 Dec 2019 02:57:02 -0500
Received: by mail-pl1-f174.google.com with SMTP id bc8so892529plb.12
 for <38426 <at> debbugs.gnu.org>; Thu, 12 Dec 2019 23:57:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; s=google;
 h=from:to:cc:references:in-reply-to:subject:date:message-id
 :mime-version:content-transfer-encoding:thread-index
 :content-language;
 bh=Y5Xqifj65NcARlri329mmBOuUSS6GAvtNumQWONztFc=;
 b=DVjjmM+zCKJIJWkfTia9D39/5l3V920e+LLdPtXy10Dm/SYHrQWMrsobmIa3RKV1yW
 luClMjIkvpbpsnxIQLbyWXK6PzkwicN6jBD02zOLgY+1Ggy/VZEXw4tQrMGP0jXojTCe
 9Rd2KSbVRoPnPi59Nvz6SYEKaBqtply4z9v80=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date
 :message-id:mime-version:content-transfer-encoding:thread-index
 :content-language;
 bh=Y5Xqifj65NcARlri329mmBOuUSS6GAvtNumQWONztFc=;
 b=ZkNKzqUSobfQO5OUVkProy0buOWufEMFfGbGXEsJB2J7PZdekAEJLvVFxzAnajdRSh
 j4ZSdQXSlo33IShKAlBquvES4qiI7LCYQlJ7bToH6/KMHOqus0KFX/JoYn9Udaq+/R55
 SWCZP9EdurSSYh5HR6Npf09zeNplJcerWu7JHhQzjD7FodU7VMoeH81Ts9UmQCQSmaWx
 HfHXyipLGRGcSvR02OZg7ddEIJYi5R3e5VWcl1w1FStGjadkVOoTrB3JrUqsckUwNtlw
 tdRMD8nHlgS35qVJz5SCcqrry4l3thS8DBmyDn1JqTDcwnTbagrJZzKAKglMRgq8hc76
 VPww==
X-Gm-Message-State: APjAAAXinXfu6eR1BvKMwUw4pfoAEFUxb0UWAhNUAOpgxiz8LyHTrH0W
 lDic5uObOV9K4WsO+FUHvrg9yc4TSgBz35jZXeezPBmChD6hxg8/nB/wOSpIAuSfULLsVVrf7+u
 B2VJpWIv+Qg2SJBjwZgj7E/Rwkli2od+eEwcmVh5KOf6L6VLSlxmEY/evnPGz
X-Google-Smtp-Source: APXvYqxvQ1mG+0sq8g/FF4IBMmK5AcC7k1oyfDTQcodt3y4p3+lG7mnkQZUQ4j0YIZfBVXfPIrIiLg==
X-Received: by 2002:a17:902:b218:: with SMTP id
 t24mr14696172plr.267.1576223815383; 
 Thu, 12 Dec 2019 23:56:55 -0800 (PST)
Received: from DESKTOP71C1N5K ([38.99.100.2])
 by smtp.gmail.com with ESMTPSA id p124sm10464112pfb.52.2019.12.12.23.56.53
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 12 Dec 2019 23:56:54 -0800 (PST)
From: <lin.sun@HIDDEN>
To: "'Eli Zaretskii'" <eliz@HIDDEN>
References: <5def06f1.1c69fb81.3b1a0.4361@HIDDEN>
 <83v9qoc152.fsf@HIDDEN> <002c01d5b15a$3bd1dd00$b3759700$@zoom.us>
 <83k1708z1k.fsf@HIDDEN>
In-Reply-To: <83k1708z1k.fsf@HIDDEN>
Subject: RE: bug#38426: 27.0.50;
 [PATCH] * python.el: new function python-shell-send-statement
Date: Fri, 13 Dec 2019 15:56:51 +0800
Message-ID: <000201d5b18a$e2a2a210$a7e7e630$@zoom.us>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQIFJT9w3DpbBJA0C63BywO7d4g5YgGvPch4Abq89XwBvi+y76cviYZw
Content-Language: en-us
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38426
Cc: larsi@HIDDEN, 38426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> From: Eli Zaretskii <eliz@HIDDEN> 
> Please wait, your patch is in my queue.
Okay, thank you.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38426; Package emacs. Full text available.

Message received at 38426 <at> debbugs.gnu.org:


Received: (at 38426) by debbugs.gnu.org; 13 Dec 2019 07:28:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 13 02:28:36 2019
Received: from localhost ([127.0.0.1]:32955 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iffNM-0002Dc-0Y
	for submit <at> debbugs.gnu.org; Fri, 13 Dec 2019 02:28:36 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47021)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iffNK-0002DR-Kb
 for 38426 <at> debbugs.gnu.org; Fri, 13 Dec 2019 02:28:34 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:51159)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iffNF-0003Tm-Cg; Fri, 13 Dec 2019 02:28:29 -0500
Received: from [176.228.60.248] (port=1895 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iffND-0005Ns-Tb; Fri, 13 Dec 2019 02:28:28 -0500
Date: Fri, 13 Dec 2019 09:28:23 +0200
Message-Id: <83k1708z1k.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: <lin.sun@HIDDEN>
In-reply-to: <002c01d5b15a$3bd1dd00$b3759700$@zoom.us> (lin.sun@HIDDEN)
Subject: Re: bug#38426: 27.0.50;
 [PATCH] * python.el: new function python-shell-send-statement
References: <5def06f1.1c69fb81.3b1a0.4361@HIDDEN>
 <83v9qoc152.fsf@HIDDEN> <002c01d5b15a$3bd1dd00$b3759700$@zoom.us>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38426
Cc: larsi@HIDDEN, 38426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: <lin.sun@HIDDEN>
> Cc: <38426 <at> debbugs.gnu.org>,
> 	<larsi@HIDDEN>
> Date: Fri, 13 Dec 2019 10:08:35 +0800
> 
> > Thanks, I sent the form off-list.
> I already finish the contributing assignment process, and got the executed PDF "Sun.1456824.GNU.EMACS.pdf".
> 
> What should I do next to continue merging the patch #38426 into the repo please?

Please wait, your patch is in my queue.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38426; Package emacs. Full text available.

Message received at 38426 <at> debbugs.gnu.org:


Received: (at 38426) by debbugs.gnu.org; 13 Dec 2019 02:08:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 12 21:08:48 2019
Received: from localhost ([127.0.0.1]:32865 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ifaNs-0000dr-Bh
	for submit <at> debbugs.gnu.org; Thu, 12 Dec 2019 21:08:48 -0500
Received: from mail-pg1-f178.google.com ([209.85.215.178]:42376)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lin.sun@HIDDEN>) id 1ifaNq-0000dY-Qc
 for 38426 <at> debbugs.gnu.org; Thu, 12 Dec 2019 21:08:47 -0500
Received: by mail-pg1-f178.google.com with SMTP id s64so720039pgb.9
 for <38426 <at> debbugs.gnu.org>; Thu, 12 Dec 2019 18:08:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; s=google;
 h=from:to:cc:references:in-reply-to:subject:date:message-id
 :mime-version:content-transfer-encoding:thread-index
 :content-language;
 bh=xG4h/XkYhObwTThVVwOO69QE0tPd2Jkx0JpwsJlp9XQ=;
 b=WrZG3uEdCSNd9SNl1PTkCAkE+3rQaXbHub9k+C1z/Tpx+UpSjb8tQXvNLanobpOFYI
 3LMBUfciKpOx6ZNVB5IF9F9Yt6OYYch5wCSIzRGVNMCnyFjix2vpBVO6Nakg+z3svrpu
 6yMEbM1kyJnMrFtF9LPTsStWU+2mOUbQ0KtkA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date
 :message-id:mime-version:content-transfer-encoding:thread-index
 :content-language;
 bh=xG4h/XkYhObwTThVVwOO69QE0tPd2Jkx0JpwsJlp9XQ=;
 b=TulMu0n90SGv2qhLlG8ffmfgAWoeuoCKswk6T1tyu2VaR+JV/abgdekC34ZDlqfaq2
 pcSn+62Ro/m0jgXIjzb2S4xCtYYSsfqotA1hgHfgPTUsR2jmWzx8LfhmVLXD1f0TE3Nw
 TpDT4RPpbddIyWlOCcb2joAXEdglh7nzNghakKTN2WWaZHCe0WoYjf6wqxPtgrORNvtP
 zArvcCCIb5EDRB98ZLq29lclUELmHNtoy1i2ng3872XTi3brKoREEX2Mt8sCkFlqJyOl
 jFy8b4ZA2B1Th+N7vFDSqs/ECPQ0qeTvFR1f6MrkNzJ8qFRVVIbrgIo9CRyaHPPVvH1Y
 qmcQ==
X-Gm-Message-State: APjAAAVq/0lxck8Sim39vhLBQ6IPk0NLNL//Ez58chQPYtSiBxMj5t89
 V89e/0rmj4kT5gg8tvGvHE9NI10LNI/Tgr9HEV6W/acFU/GM9zRK2/dDg8MjpJvnA/JqwBSK4WC
 5gXjI2SZjqD0FZ6zwgmCpP4S61k0V+rdcaK2REPfL/b4GibtDz8TTY4kDd39a
X-Google-Smtp-Source: APXvYqyDPOqQbtPrV/jiJnnpGZm5bKjXvLFNnDtZ95tJsjzRau5zQgJ7cbYu0UE24jNrQvl9i6aZrw==
X-Received: by 2002:a65:490e:: with SMTP id p14mr14165753pgs.4.1576202920645; 
 Thu, 12 Dec 2019 18:08:40 -0800 (PST)
Received: from DESKTOP71C1N5K ([38.99.100.2])
 by smtp.gmail.com with ESMTPSA id u11sm7283032pjr.9.2019.12.12.18.08.38
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 12 Dec 2019 18:08:40 -0800 (PST)
From: <lin.sun@HIDDEN>
To: "'Eli Zaretskii'" <eliz@HIDDEN>
References: <5def06f1.1c69fb81.3b1a0.4361@HIDDEN>
 <83v9qoc152.fsf@HIDDEN>
In-Reply-To: <83v9qoc152.fsf@HIDDEN>
Subject: RE: bug#38426: 27.0.50;
 [PATCH] * python.el: new function python-shell-send-statement
Date: Fri, 13 Dec 2019 10:08:35 +0800
Message-ID: <002c01d5b15a$3bd1dd00$b3759700$@zoom.us>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQIFJT9w3DpbBJA0C63BywO7d4g5YgGvPch4p0rt+1A=
Content-Language: en-us
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38426
Cc: larsi@HIDDEN, 38426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Eli,

> Thanks, I sent the form off-list.
I already finish the contributing assignment process, and got the =
executed PDF "Sun.1456824.GNU.EMACS.pdf".

What should I do next to continue merging the patch #38426 into the repo =
please?

Thanks





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38426; Package emacs. Full text available.

Message received at 38426 <at> debbugs.gnu.org:


Received: (at 38426) by debbugs.gnu.org; 10 Dec 2019 03:26:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 09 22:26:06 2019
Received: from localhost ([127.0.0.1]:54655 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ieWA2-0002b8-Fc
	for submit <at> debbugs.gnu.org; Mon, 09 Dec 2019 22:26:06 -0500
Received: from eggs.gnu.org ([209.51.188.92]:43830)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ieWA0-0002aW-BP
 for 38426 <at> debbugs.gnu.org; Mon, 09 Dec 2019 22:26:04 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44956)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ieW9v-0003A5-6Z; Mon, 09 Dec 2019 22:25:59 -0500
Received: from [176.228.60.248] (port=1746 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ieW9t-0006nj-Us; Mon, 09 Dec 2019 22:25:58 -0500
Date: Tue, 10 Dec 2019 05:25:45 +0200
Message-Id: <83v9qoc152.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: LinSun <lin.sun@HIDDEN>
In-reply-to: <5def06f1.1c69fb81.3b1a0.4361@HIDDEN> (message from LinSun
 on Tue, 10 Dec 2019 10:46:02 +0800)
Subject: Re: bug#38426: 27.0.50; [PATCH] * python.el: new function
 python-shell-send-statement
References: <5def06f1.1c69fb81.3b1a0.4361@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38426
Cc: larsi@HIDDEN, 38426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Tue, 10 Dec 2019 10:46:02 +0800
> From: LinSun <lin.sun@HIDDEN>
> Cc: "38426 <at> debbugs.gnu.org" <38426 <at> debbugs.gnu.org>, 
> 	"larsi@HIDDEN" <larsi@HIDDEN>
> 
> No problem. I’m an Emacs fan, and glad to contribute the code. 

Thanks, I sent the form off-list.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38426; Package emacs. Full text available.

Message received at 38426 <at> debbugs.gnu.org:


Received: (at 38426) by debbugs.gnu.org; 10 Dec 2019 02:46:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 09 21:46:18 2019
Received: from localhost ([127.0.0.1]:54647 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ieVXW-0001Sy-7o
	for submit <at> debbugs.gnu.org; Mon, 09 Dec 2019 21:46:18 -0500
Received: from mail-pl1-f178.google.com ([209.85.214.178]:42526)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lin.sun@HIDDEN>) id 1ieVXU-0001Sl-3e
 for 38426 <at> debbugs.gnu.org; Mon, 09 Dec 2019 21:46:16 -0500
Received: by mail-pl1-f178.google.com with SMTP id x13so6633158plr.9
 for <38426 <at> debbugs.gnu.org>; Mon, 09 Dec 2019 18:46:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; s=google;
 h=message-id:mime-version:date:from:subject:thread-topic:to:cc
 :content-transfer-encoding;
 bh=SZN5AYwcT5u7UTYF8JdEYp/vgmS4i3Tc5bjHo5kvhjk=;
 b=WP9rnhRphoS8WEoBUx0tu0fPulc2HvkFYSNWfPkL9Kq0+32wfRDnbZLgdn+O0ikaZx
 yy/TGFyjFolhDkjXpap2tx6sKwiPRcjOFLKgZPFm4i2jKrgQHYKCZ/5kBzgX2WVhNL4M
 L11W4176FnU6aDxY2rQl8tXYXpwyPRvaHii78=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:message-id:mime-version:date:from:subject
 :thread-topic:to:cc:content-transfer-encoding;
 bh=SZN5AYwcT5u7UTYF8JdEYp/vgmS4i3Tc5bjHo5kvhjk=;
 b=O4Beg/f+fly4jowdFe8wvcMuXOQDTZqIAq+wfuL8s4ROKoHB0hwAm6qXZnJCLUCrGF
 GVquC5kgWGhQQUR07UO3Ihqsif68oH9m3FKMH8e2R74y3xoJvAB9X3HPmG/wlGuzq8Ls
 1uSB5FXScUTEPQKLGpnnsC0zxbR6gfB5Q+BDH+3chx7y8OGIsK1A93khV/UWOehL0sc5
 +vX6BUdm8np4Ff7uN1zLfnnbXxu+hSxB+7kYwst2yZeAX5MXw1BRrTs9b/NAPLZsi58B
 mrHvMkQl+EuFlRiPCZHGIyo5x6MyUccjWw2pfhAmsIXm7SXGlqBtgRb9OuWr32rWHV1b
 pfEw==
X-Gm-Message-State: APjAAAUBi6tjzx0/tPEUFIXkantlAsVIrTOhUXAqP7U7s9XYk0NtiWkT
 i7D77m+doPt37/30OXjRClzzaA==
X-Google-Smtp-Source: APXvYqxYzqyYXFIx2fhVste9WZ+ftC+funIQcC8x204pt5MkmeB6VfApBBtQ4asVghJgpYnfi2wo7A==
X-Received: by 2002:a17:902:6b49:: with SMTP id
 g9mr33243179plt.156.1575945970165; 
 Mon, 09 Dec 2019 18:46:10 -0800 (PST)
Received: from smtp.gmail.com ([38.99.100.2])
 by smtp.gmail.com with ESMTPSA id y128sm831346pfg.17.2019.12.09.18.46.08
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 09 Dec 2019 18:46:09 -0800 (PST)
Message-ID: <5def06f1.1c69fb81.3b1a0.4361@HIDDEN>
MIME-Version: 1.0
Date: Tue, 10 Dec 2019 10:46:02 +0800
From: LinSun <lin.sun@HIDDEN>
Subject: RE: Re: bug#38426: 27.0.50; [PATCH] * python.el: new function
 python-shell-send-statement
Thread-Topic: RE: Re: bug#38426: 27.0.50; [PATCH] * python.el: new function
 python-shell-send-statement
To: Eli Zaretskii <eliz@HIDDEN>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 38426
Cc: "larsi@HIDDEN" <larsi@HIDDEN>,
 "38426 <at> debbugs.gnu.org" <38426 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.9 (/)

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta ht=
tp-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta name=
=3DGenerator content=3D"Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"\@DengXian";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
	{page:WordSection1;}
--></style></head><body lang=3DEN-US link=3Dblue vlink=3D"#954F72"><div cla=
ss=3DWordSection1><p class=3DMsoNormal>Hi Eli,</p><p class=3DMsoNormal><o:p=
>&nbsp;</o:p></p><p class=3DMsoNormal>No problem. I=E2=80=99m an Emacs fan,=
 and glad to contribute the code. </p><p class=3DMsoNormal>Thank you.</p><p=
 class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Best Regards<o=
:p></o:p></p><p class=3DMsoNormal>Lin Sun<o:p></o:p></p><p class=3DMsoNorma=
l><o:p>&nbsp;</o:p></p><div style=3D'mso-element:para-border-div;border:non=
e;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoN=
ormal style=3D'border:none;padding:0in'><b>From: </b><a href=3D"mailto:eliz=
@gnu.org">Eli Zaretskii</a><br><b>Sent: </b>Saturday, December 7, 2019 17:4=
5<br><b>To: </b><a href=3D"mailto:lin.sun@HIDDEN">lin.sun@HIDDEN</a><br><=
b>Cc: </b><a href=3D"mailto:38426 <at> debbugs.gnu.org">38426 <at> debbugs.gnu.org</a=
>; <a href=3D"mailto:larsi@HIDDEN">larsi@HIDDEN</a><br><b>Subject: </b>=
Re: bug#38426: 27.0.50; [PATCH] * python.el: new function python-shell-send=
-statement</p></div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMs=
oNormal>severity 38426 wishlist</p><p class=3DMsoNormal>thanks</p><p class=
=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>&gt; From: &lt;lin.s=
un@HIDDEN&gt;</p><p class=3DMsoNormal>&gt; Date: Fri, 29 Nov 2019 16:40:55=
 +0800</p><p class=3DMsoNormal>&gt; </p><p class=3DMsoNormal>&gt; &gt;From =
61db0e91094297ddca302eaf691cf5b4ff82ebf6 Mon Sep 17 00:00:00 2001</p><p cla=
ss=3DMsoNormal>&gt; From: &quot;lin.sun&quot; &lt;lin.sun@HIDDEN&gt;</p><p=
 class=3DMsoNormal>&gt; Date: Fri, 29 Nov 2019 03:10:12 -0500</p><p class=
=3DMsoNormal>&gt; Subject: [PATCH] * python.el: new function python-shell-s=
end-statement</p><p class=3DMsoNormal>&gt; </p><p class=3DMsoNormal>&gt; Ad=
d new function `python-shell-send-statement' and bind to key &quot;C-c</p><=
p class=3DMsoNormal>&gt; C-e&quot; for sending statement under cursor to in=
ferior Python process.</p><p class=3DMsoNormal>&gt; ---</p><p class=3DMsoNo=
rmal>&gt;=C2=A0 lisp/progmodes/python.el | 20 ++++++++++++++++++++</p><p cl=
ass=3DMsoNormal>&gt;=C2=A0 1 file changed, 20 insertions(+)</p><p class=3DM=
soNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Thanks, but for us to ac=
cept a contribution this large we need a</p><p class=3DMsoNormal>copyright =
assignment from you.=C2=A0 Would you like to start the legal</p><p class=3D=
MsoNormal>paperwork at this time?=C2=A0 If so, I will send you the form to =
fill and</p><p class=3DMsoNormal>email.</p><p class=3DMsoNormal><o:p>&nbsp;=
</o:p></p></div></body></html>=





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38426; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 38426 <at> debbugs.gnu.org:


Received: (at 38426) by debbugs.gnu.org; 8 Dec 2019 05:59:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 08 00:59:21 2019
Received: from localhost ([127.0.0.1]:50360 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1idpbF-0000A2-Ai
	for submit <at> debbugs.gnu.org; Sun, 08 Dec 2019 00:59:21 -0500
Received: from eggs.gnu.org ([209.51.188.92]:52901)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1idpbD-00009l-To; Sun, 08 Dec 2019 00:59:20 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:60141)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1idWeU-0003yF-Ca; Sat, 07 Dec 2019 04:45:26 -0500
Received: from [176.228.60.248] (port=4325 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1idWeT-0005ll-17; Sat, 07 Dec 2019 04:45:25 -0500
Date: Sat, 07 Dec 2019 11:45:13 +0200
Message-Id: <838snofp06.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: <lin.sun@HIDDEN>
In-reply-to: <046101d5a690$b8e69bc0$2ab3d340$@zoom.us> (lin.sun@HIDDEN)
Subject: Re: bug#38426: 27.0.50;
 [PATCH] * python.el: new function python-shell-send-statement
References: <046101d5a690$b8e69bc0$2ab3d340$@zoom.us>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38426
Cc: larsi@HIDDEN, 38426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

severity 38426 wishlist
thanks

> From: <lin.sun@HIDDEN>
> Date: Fri, 29 Nov 2019 16:40:55 +0800
> 
> >From 61db0e91094297ddca302eaf691cf5b4ff82ebf6 Mon Sep 17 00:00:00 2001
> From: "lin.sun" <lin.sun@HIDDEN>
> Date: Fri, 29 Nov 2019 03:10:12 -0500
> Subject: [PATCH] * python.el: new function python-shell-send-statement
> 
> Add new function `python-shell-send-statement' and bind to key "C-c
> C-e" for sending statement under cursor to inferior Python process.
> ---
>  lisp/progmodes/python.el | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)

Thanks, but for us to accept a contribution this large we need a
copyright assignment from you.  Would you like to start the legal
paperwork at this time?  If so, I will send you the form to fill and
email.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38426; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Nov 2019 15:05:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 29 10:05:19 2019
Received: from localhost ([127.0.0.1]:33416 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iahpf-0002rc-4k
	for submit <at> debbugs.gnu.org; Fri, 29 Nov 2019 10:05:19 -0500
Received: from lists.gnu.org ([209.51.188.17]:36136)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lin.sun@HIDDEN>) id 1iabpx-0001uU-8v
 for submit <at> debbugs.gnu.org; Fri, 29 Nov 2019 03:41:13 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:55022)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <lin.sun@HIDDEN>) id 1iabpt-0000gt-Rd
 for bug-gnu-emacs@HIDDEN; Fri, 29 Nov 2019 03:41:11 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lin.sun@HIDDEN>) id 1iabpo-0005oL-7O
 for bug-gnu-emacs@HIDDEN; Fri, 29 Nov 2019 03:41:07 -0500
Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:45560)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <lin.sun@HIDDEN>) id 1iabpn-0005Zg-VF
 for bug-gnu-emacs@HIDDEN; Fri, 29 Nov 2019 03:41:04 -0500
Received: by mail-pf1-x429.google.com with SMTP id z4so14299055pfn.12
 for <bug-gnu-emacs@HIDDEN>; Fri, 29 Nov 2019 00:41:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; s=google;
 h=from:to:subject:date:message-id:mime-version
 :content-transfer-encoding:thread-index:content-language;
 bh=sdzleQKj+Y5czZ6udZBLhBik1ohTciwWyTs0oxdC3eY=;
 b=XsXK0wdRKAz9jDFlPMa4YjHQD54t+2X3n7O7qxa5a1ZJV1OiHRfZgNvBipkrk/yNaS
 iEEW+sWvKOKS+z89cWnihcAhts0SCp2f+1HrMcjC3ofg7W7BwzoNwsuLl9uZd0rQBpKT
 pTeWHSWWN6Buuam8oNdlvJCiqeaxIdTc+qqxk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding:thread-index:content-language;
 bh=sdzleQKj+Y5czZ6udZBLhBik1ohTciwWyTs0oxdC3eY=;
 b=d/V7tDwz5uhs3UQ80fH8YJStjshBzbHeMim408Xf2uZJ0S1VmRopOyNBBtMe3a4ok1
 KXkluwn9SRjYGCA6Vf5PO+hbvhJQTjOtjiFVuEc7W0y+mNh5eIzi1kXDK2GxvPPNt37C
 bZJAYOBKfNoDUX3EqFkAIC/TIAsY7RiCFps7ux3GNpfY9QtXNoLCObw4jnVHlkfXSf4w
 6sf7QmwaKevLRMeGRBySRCbge/kEGyslBs9hpnVqTblqPqWMvVyvudyZkvCT3lefJvQi
 FOCttmkO/T0eJKIj59ahnZLROamdlUl/q8RZo/n7k8yj/QZYA7P2j/xx9Y8fO6M0hOZM
 s9Eg==
X-Gm-Message-State: APjAAAX5D7rCmfa/Ry3J0ntAjQRWLj9ar7JHuuSndm0q/kVw10d4ESXa
 DAniOQe2aHXG5vnuoN5kdVE7bFGAlvlK6nFg1Kf/YS0CPM9PX9NsR85RdFpVXf6gvkC96bIvK1+
 DEPzdGWmzAxgLDQ8fwy7XDHNCX71KMQ0lbdO+BAC3vg1kQP4Usjz0hSGRoxkm
X-Google-Smtp-Source: APXvYqzxJeiYnr3MUG1P0kyUmK77Xd2502HAnw7V3VzJ55KIgURXIbv1yOr+cuHjk57xvEFcgy7Icg==
X-Received: by 2002:a63:a0b:: with SMTP id 11mr15778295pgk.114.1575016859449; 
 Fri, 29 Nov 2019 00:40:59 -0800 (PST)
Received: from DESKTOP71C1N5K ([38.99.100.2])
 by smtp.gmail.com with ESMTPSA id j7sm13439916pjz.12.2019.11.29.00.40.57
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 29 Nov 2019 00:40:58 -0800 (PST)
From: <lin.sun@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>,
	"'Lars Ingebrigtsen'" <larsi@HIDDEN>
Subject: 27.0.50; [PATCH] * python.el: new function python-shell-send-statement
Date: Fri, 29 Nov 2019 16:40:55 +0800
Message-ID: <046101d5a690$b8e69bc0$2ab3d340$@zoom.us>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdWmkLGThNKe9XeAQmKaylmo4iN3Ow==
Content-Language: en-us
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::429
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 29 Nov 2019 10:05:18 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

From 61db0e91094297ddca302eaf691cf5b4ff82ebf6 Mon Sep 17 00:00:00 2001
From: "lin.sun" <lin.sun@HIDDEN>
Date: Fri, 29 Nov 2019 03:10:12 -0500
Subject: [PATCH] * python.el: new function python-shell-send-statement

Add new function `python-shell-send-statement' and bind to key "C-c
C-e" for sending statement under cursor to inferior Python process.
---
 lisp/progmodes/python.el | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 8e7d9f2..24216af 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -318,6 +318,7 @@ python-mode-map
     ;; Shell interaction
     (define-key map "\C-c\C-p" 'run-python)
     (define-key map "\C-c\C-s" 'python-shell-send-string)
+    (define-key map "\C-c\C-e" 'python-shell-send-statement)
     (define-key map "\C-c\C-r" 'python-shell-send-region)
     (define-key map "\C-\M-x" 'python-shell-send-defun)
     (define-key map "\C-c\C-c" 'python-shell-send-buffer)
@@ -357,6 +358,8 @@ python-mode-map
          :help "Eval string in inferior Python session"]
         ["Eval buffer" python-shell-send-buffer
          :help "Eval buffer in inferior Python session"]
+        ["Eval statement" python-shell-send-statement
+         :help "Eval statement in inferior Python session"]
         ["Eval region" python-shell-send-region
          :help "Eval region in inferior Python session"]
         ["Eval defun" python-shell-send-defun
@@ -3123,6 +3126,23 @@ python-shell-send-region
     (message "Sent: %s..." (match-string 1 original-string))
     (python-shell-send-string string process)))
 
+(defun python-shell-send-statement (&optional send-main msg)
+  "Send the statement delimited by `python-nav-beginning-of-statement' and
+`python-nav-end-of-statement' to inferior Python process. When optional
+argument SEND-MAIN is non-nil, allow execution of code inside blocks
delimited
+by \"if __name__== \\='__main__\\=':\". When called interactively SEND-MAIN
+defaults to nil, unless it's called with prefix argument. When optional
+argument MSG is non-nil, forces display of a user-friendly message if
there's
+no process running; default to t when called interactively. If there is
region
+be activated, it present as `python-shell-send-region'."
+  (interactive (list current-prefix-arg t))
+  (if (region-active-p)
+      (python-shell-send-region (region-beginning) (region-end) send-main
msg)
+    (python-shell-send-region
+     (save-excursion (python-nav-beginning-of-statement))
+     (save-excursion (python-nav-end-of-statement))
+     send-main msg)))
+
 (defun python-shell-send-buffer (&optional send-main msg)
   "Send the entire buffer to inferior Python process.
 When optional argument SEND-MAIN is non-nil, allow execution of
-- 
2.2.0






Acknowledgement sent to <lin.sun@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#38426; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 14 Dec 2019 12:30:02 UTC

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