From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.bugs Subject: bug#49822: 28.0.50; python-shell-send functions show no output Date: Thu, 5 Aug 2021 12:03:02 +0200 Message-ID: References: <855f9eaf1b1d39bb9325d0a88e7f66c0ba0b45d0.camel@gmail.com> <87r1f9fzj4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f77d8e05c8cd0639" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16770"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49822@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 05 12:04:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBaEV-00047Z-LS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Aug 2021 12:04:11 +0200 Original-Received: from localhost ([::1]:52018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBaET-000734-OR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Aug 2021 06:04:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBaEN-00072g-0Z for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 06:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34405) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBaEM-0001fz-BY for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 06:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBaEM-0004h8-5m for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 06:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Aug 2021 10:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49822 X-GNU-PR-Package: emacs Original-Received: via spool by 49822-submit@debbugs.gnu.org id=B49822.162815780318002 (code B ref 49822); Thu, 05 Aug 2021 10:04:02 +0000 Original-Received: (at 49822) by debbugs.gnu.org; 5 Aug 2021 10:03:23 +0000 Original-Received: from localhost ([127.0.0.1]:45951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBaDj-0004gH-6K for submit@debbugs.gnu.org; Thu, 05 Aug 2021 06:03:23 -0400 Original-Received: from mail-vs1-f50.google.com ([209.85.217.50]:33420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBaDh-0004fy-3L for 49822@debbugs.gnu.org; Thu, 05 Aug 2021 06:03:21 -0400 Original-Received: by mail-vs1-f50.google.com with SMTP id j19so2752559vso.0 for <49822@debbugs.gnu.org>; Thu, 05 Aug 2021 03:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5DUZF3smAfFUrsG9qRba9SKw0/MjciHhy9cUArAdgfA=; b=OxdIFGs43ho4W+MswNS64DmHzFUxsqYlvbTJefG4GVMjkJF6937Ak2zcxFrBPIDxl+ H0qBvgfDB9nSU3GUVSOx+ZHvvWy1qNzpCSkPdV+k1GqvlB17w0JauggpgMja110OJTFk 7VfACGrEPg85x6EfPc585y7Ef3YDsogsGRwxyp31GQpipjHa48L/3B66Nv9RUWpHjCh7 3UZ5ifw7+mfcsgBC0NLkC9q8FDMLeWG7qC405eaw3cNzWQeBc0dBTuQ+MP9fDY2tsPEj TKddHNUpUMtxF3O/Cf8Ke+huZSQmi0JkfCLb93W/7f4kWUsMdsixR94G81dQnZ5QhW3O lFMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5DUZF3smAfFUrsG9qRba9SKw0/MjciHhy9cUArAdgfA=; b=N6fpPP4Z0D71MrKwRrj6LvHzxkXO7XVVqnhrMSgn6pDTZGFsBRdGPAG6jmLP8/Z+4d b+3MuZV+P9N9gt92I2qIiHiPq9Py/bRAksfTcVDzuTs5vRR/Bnqih0XWEg8loFu/+2cq qKUXEe8FVDmN4UrHWgymi8U9t/SB0kp++7wsKv3lmhVnco7g2l2O4lElAb6AEERk6erq f46ZY/F9g03+UXuJASMFbTTsuKGq4PR13Pd9hW6uwWTFj9eqdf8OON5nCImnWb92Q32O l1UOXFmjVGbHme0W3fU90kP1/eSwSGq1qQFhFOFVcIE9XUlFKcmSe51gY86hQFiw4GKa FE7w== X-Gm-Message-State: AOAM530l+Jm/QkL7/5R30dBoMtLB8rMOBm8SE5oQZGIFHUY1JvCeSqs7 N9w5usHDVX2tFmtB9m7CGWkHCJGS+tHZPJcBz48= X-Google-Smtp-Source: ABdhPJwNmCHMGvJPjQrn0Iu+4wOi0NbsyRapf9Fha2N5S9+3Jjb24nAmGVm/oM6eVo5IdY6llAEY5ycUY5UZYLzLRtQ= X-Received: by 2002:a67:fa16:: with SMTP id i22mr3684181vsq.49.1628157794285; Thu, 05 Aug 2021 03:03:14 -0700 (PDT) In-Reply-To: <87r1f9fzj4.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211211 Archived-At: --000000000000f77d8e05c8cd0639 Content-Type: text/plain; charset="UTF-8" Okay, I have switched to the master branch now and rebuild emacs. So I find it works differently than I thought. As reported in my original bug-report, the comint still does not show the output when sending using `C-c C-c` but I see now that actually that is bound to `python-shell-send-buffer`. So now I notice that the only function that effects in the comint printing the output is `python-shell-send-statement`. Probably I was misled by the Spacemacs function `pyhton-shell-send-line` which uses `python-shell-send-region` and therefore when used the comint does not print the output. (And I was blindly assuming that `C-c C-c` was using shell send line/statement) Thanks for your replies! On Wed, 4 Aug 2021 at 09:18, Lars Ingebrigtsen wrote: > dalanicolai@gmail.com writes: > > > M-x run-python > > type e.g.: 5+5 > > then send using `C-c C-c` > > > > The comint shows no output. Same for ipython comint. > > I'm unable to reproduce this on the current trunk -- I seem to recall > this was fixed a few months ago. > > [...] > > > In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > > 3.24.25, cairo version 1.16.0) > > of 2021-02-18 built on daniel-fedora > > Repository revision: 185121da6978553d538d37d6d0e67dc52e13311f > > Repository branch: feature/native-comp > > As Andrea said -- this branch no longer exists (it's been merged into > the trunk), which might explain why your Emacs is half a year behind. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --000000000000f77d8e05c8cd0639 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Okay, I have switched to the master branch now and re= build emacs.

So I find it works differently th= an I thought. As reported in my original bug-report,
the comint s= till does not show the output when sending using `C-c C-c` but I see now
that actually that is bound to `python-shell-send-buffer`. So now I= notice that the only
function that effects in the comint printin= g the output is `python-shell-send-statement`.

Pro= bably I was misled by the Spacemacs function `pyhton-shell-send-line` which= uses
`python-shell-send-region` and therefore when used the= comint does not print the output.
(And I was blindly assuming th= at `C-c C-c` was using shell send line/statement)

= Thanks for your replies!


On Wed, 4 Aug 2021 at 09:1= 8, Lars Ingebrigtsen <larsi@gnus.org> wrote:
= dalanicolai@gmail.com writes:

> M-x run-python
> type e.g.: 5+5
> then send using `C-c C-c`
>
> The comint shows no output. Same for ipython comint.

I'm unable to reproduce this on the current trunk -- I seem to recall this was fixed a few months ago.

[...]

> In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
> 3.24.25, cairo version 1.16.0)
> =C2=A0of 2021-02-18 built on daniel-fedora
> Repository revision: 185121da6978553d538d37d6d0e67dc52e13311f
> Repository branch: feature/native-comp

As Andrea said -- this branch no longer exists (it's been merged into the trunk), which might explain why your Emacs is half a year behind.

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--000000000000f77d8e05c8cd0639--