From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#50514: 28.0.50; org inline call to python src block req C-g to break Date: Sun, 12 Sep 2021 11:15:20 +0200 Message-ID: <87pmteb1ef.fsf@gmail.com> References: <24B9F777-2B69-45FD-ADBB-11E7A18F7A9A@disney.com> <87wnnnjlav.fsf@gmail.com> <871r5u1e3m.fsf@gmail.com> <61CB9513-0EEC-4F46-90D6-1D208BBADFA1@disney.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34989"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "50514@debbugs.gnu.org" <50514@debbugs.gnu.org>, Lars Ingebrigtsen To: "Barton, Mark" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 12 11:16:29 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 1mPLbB-0008sP-3w for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Sep 2021 11:16:29 +0200 Original-Received: from localhost ([::1]:33738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPLb9-0005DO-Py for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Sep 2021 05:16:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPLak-0005DB-9B for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 05:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPLak-00070k-1w for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 05:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mPLaj-0006dD-UE for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 05:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Sep 2021 09:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50514 X-GNU-PR-Package: emacs Original-Received: via spool by 50514-submit@debbugs.gnu.org id=B50514.163143813125454 (code B ref 50514); Sun, 12 Sep 2021 09:16:01 +0000 Original-Received: (at 50514) by debbugs.gnu.org; 12 Sep 2021 09:15:31 +0000 Original-Received: from localhost ([127.0.0.1]:42058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPLaF-0006cT-2Y for submit@debbugs.gnu.org; Sun, 12 Sep 2021 05:15:31 -0400 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:44026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPLaC-0006cG-RT for 50514@debbugs.gnu.org; Sun, 12 Sep 2021 05:15:29 -0400 Original-Received: by mail-wr1-f44.google.com with SMTP id b6so9611268wrh.10 for <50514@debbugs.gnu.org>; Sun, 12 Sep 2021 02:15:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=6JyzsCxhWB30RBm6/BnGXZYFcb9nahPPQcwVlMl2Q64=; b=WFvCUbQrW//CCAGfH5UYmR2mNcKnuqELbTX+zWXo45vb4HHfA402kXFJy98dAGxMoa 6H5F2ry019M4eun2tx6IGY4iXKH57f+tAfkc6wviEBY+CjRKcP6/T7Q0N5o8/2S6V6q3 jEd5Qer4ZCxc1+i7AHwV2NCNOfYX4Y2xVL8Ru3mA7klMYRXhnSrc/PQqioaMDGLZYHcg Cup4wSXkvB/PGMS0UVDNaJeJlUJpUAc5DsKbWTj8pvQLSd84JK197ZME9Q2XHZhWO6HQ PDQ0b2aHkvFUmPjskUdgp2e5y+itNa8KCIzDIHI5knEeyW+i67Bhm2EawNKfoSgGCWpy 4v1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=6JyzsCxhWB30RBm6/BnGXZYFcb9nahPPQcwVlMl2Q64=; b=C82hmnnFel0nWKg6v88b/4nLH2k4zDvN7vLqj+dRi+RLpIZT9lmz02ABwIhCioTUxQ 1egQd0ABK1njRH5huv81SVM7Mu2SQ5h1Sa2sn2e8vj4Pp3b6BgeDVnskuzpf0qRdUiV2 0pd1heX2xGehcdWHZF0J3kzWJ8ZeJPTV23ByVyyu7CKjCCJyfhROIH2sIpnV/xQ1OapV XFtzPOdLy0tmIbkvuLn6a6TeXzjwPOrSjjf6h5zMniq4008GgCeWQpE5x7dqwOEVQbJB TBdPzCEgvtdIEqZifpelBZ4js6m0T2cYDkPEKV+egDrKhEXe2Q4M7H9APuXNxH9C7GbM N6rg== X-Gm-Message-State: AOAM533TIK2GHeqbXBt30HtptNDpbAEfp4kAutCAHTI5aTcnp2zKl4YG jhrQTLs4BsY6MJ2fEmnBw7dFk61IvXGgEA== X-Google-Smtp-Source: ABdhPJwoOqhLrZXUks9ac62vyA+h3LoNT4QhXUSGiIfLY3q/Gaj+0btr60V1SaGys0W1rgPWvQsKew== X-Received: by 2002:adf:b7cd:: with SMTP id t13mr6727134wre.63.1631438122723; Sun, 12 Sep 2021 02:15:22 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::b1d]) by smtp.gmail.com with ESMTPSA id f3sm3568662wmj.28.2021.09.12.02.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 02:15:22 -0700 (PDT) In-Reply-To: <61CB9513-0EEC-4F46-90D6-1D208BBADFA1@disney.com> (Mark Barton's message of "Sun, 12 Sep 2021 08:27:23 +0000") 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:214122 Archived-At: What if you (setq comint-max-line-length 0)? If that solves the problem, you could try to find the biggest value that still works for you (256 or 512 would be probable candidates). On Sun, 12 Sep 2021 at 08:27, "Barton, Mark" wrote: > On Sep 11, 2021, at 11:51 PM, Augusto Stoffel wrot= e: > > Okay, I opened a bug in Org mode linking to this ticket and suggesting > the solution > https://nam04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Forgm= ode.org%2Flist%2F875yv61ej9.fsf%40gmail.com%2FT%2F%23u&data=3D04%7C01%7= CMark.Barton%40disney.com%7Cf0ed3506c5a84b98ec2408d975b9b53c%7C56b731a8a2ac= 4c32bf6b616810e913c6%7C1%7C0%7C637670262742236357%7CUnknown%7CTWFpbGZsb3d8e= yJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&am= p;sdata=3DDH%2BaAGp7m%2BddApEMkeWBmAJ%2FXLIWxJy7oCVxG1oFItc%3D&reserved= =3D0 >=20=20 > > As to the problem still you have when starting up the shell, I can't > observe it (but I am not able to test on macos). Does it happen when > you just call `M-x run-python' from emacs -Q? And does it persist if you > do > (setq python-shell-completion-native-enable nil) > ? > > Augusto,=20 > > If I (setq python-shell-completion-native-enable nil) then I don=E2=80= =99t get a message about the > completion in the echo area, but I still need to do C-g to break out in o= rder to send any commands > (keystrokes) to emacs.=20 > > If I run emacs -Q and then open that org file and run M-x run-python. The= n it opens Inferior Python > in a buffer *Python* and emacs is responsive and so is the python shell. = I noted earlier that if I > don=E2=80=99t use the session naming, then simple cases work where I don= =E2=80=99t need multiple src blocks to > share an environment. > > This time I tried setting =E2=80=9CEnter Debugger on Quit/C-g=E2=80=9D fr= om the Option menu in Emacs. This is > what I get when I pressed C-g to get control of Emacs after the first C-c= C-c to evaluate > call_file_date inline function. > > Debugger entered--Lisp error: (quit) > org-babel-python--send-string("*python-chain*" "with open > ('/var/folders/kf/zdpzgs9d30b3jj4bdkdjf1v...") > org-babel-python-evaluate-session("*python-chain*" "print(\"testing2\",= end=3D\"\")" output > ("replace" "output")) > org-babel-python-evaluate("*python-chain*" "print(\"testing2\", end=3D\= "\")" output ("replace" > "output") nil) > org-babel-execute:python("print(\"testing2\", end=3D\"\")" ((:colname-n= ames) (:rowname-names) > (:result-params "replace" "output") (:result-type . output) (:results . "= replace output") (:exports . > "results") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "n= o") (:session . "python-chain"))) > org-babel-execute-src-block(nil ("python" "print(\"testing2\", end=3D\"= \")" ((:results . "output > replace") (:exports . "results") (:session . "python-chain") (:cache . "n= o") (:noweb . "no") (:hlines . > "no") (:tangle . "no")) nil nil 359 "(ref:%s)")) > org-ctrl-c-ctrl-c(nil) > funcall-interactively(org-ctrl-c-ctrl-c nil) > command-execute(org-ctrl-c-ctrl-c)