From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gMVWIkmZgGLZPQEAbAwnHQ (envelope-from ) for ; Sun, 15 May 2022 08:10:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QFNPIkmZgGLP4QAA9RJhRA (envelope-from ) for ; Sun, 15 May 2022 08:10:17 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 39E242C619 for ; Sun, 15 May 2022 08:10:17 +0200 (CEST) Received: from localhost ([::1]:50634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nq7SJ-0003cA-AG for larch@yhetil.org; Sun, 15 May 2022 02:10:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nq7Ps-0003c1-Ej for emacs-orgmode@gnu.org; Sun, 15 May 2022 02:07:44 -0400 Received: from gallois.livando.com ([31.170.109.33]:50986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nq7Pq-0005vS-Gb for emacs-orgmode@gnu.org; Sun, 15 May 2022 02:07:44 -0400 X-PDA-ORIGIN: gallois.livando.com Received: (qmail 612903 invoked from network); 15 May 2022 06:00:58 -0000 Received: by simscan 1.4.0 ppid: 612896, pid: 612900, t: 0.1160s scanners: clamav: 0.103.6/m:62/d:26541 Received: from unknown (HELO ?192.168.0.77?) (christian@gladbachcity.de@95.90.192.16) by 0 with SMTP; 15 May 2022 06:00:57 -0000 Message-ID: Subject: Bug: ob-R.el breaks when :session is specified From: Christian Heinrich To: emacs-orgmode Cc: Jeremie Juste Date: Sun, 15 May 2022 08:00:57 +0200 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-IWGMe9tYK21XCzSCNXva" User-Agent: Evolution 3.42.3-1 MIME-Version: 1.0 Received-SPF: none client-ip=31.170.109.33; envelope-from=com-orgmode-mailinglist@gladbachcity.de; helo=gallois.livando.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652595017; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=t5jC7MzxrZnnjaLMsgfSIjE+QMLTTmXjtM0X3uTXkTw=; b=Ff632jmNUqSOIS0sS1704FKCPUO9peINfkOkfUFrD+A9Ngn0S8UzKmoQsWaR5+g39uoL7G piOONhg2hsoRsnE8ePdIiAgMSGotWURBdwpVWUAZfximuNyDC9e6uHnDANXFHM5xZEeNEn 86vyxbCaRBLes6vzrU48X1DPkJEFUCZBEwHzM0GQlQ3fWONgSCkCEKJNn2Wbl0dCHylikz Y0ssXqJH8mseEdovvY4jOaPcVhqCBk2uWSG2qdSfWtAxnmWGhrfv9l34Z9ytnd8j/q3XcQ enZYhixY95Hs/207rfoNlNBah+ikFoDPWGriUunN572JxQMkeHRycp9Hl3BS8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652595017; a=rsa-sha256; cv=none; b=fWUrgLaRkSf68OrL5E/W1S/TgC5KClNXDfTzTw7Icuot4zyWzEIFfXUQvSf4HAXSmmOl/s jAQEZt5fqStk80gmQy27AIqZnqPXCnp2HaRNSKvfjAvXz1akLwqKoJFfsEDZ4VfrtVj8QF zazqlXA9GYR+qhiJ+yNBvVHu87CYVF8hYU0/bJzHNdE0LERGcPwtUbEIqZIH4nSuTfIi4I ZxInWbTnN0P/BuM5TucDyz1Zie7RSIBajcItc5UDhOR8R1x8dhcahBVQaWoH7kHyb43Xcu Kt0UePx5vGqcSgn2/q5G6/3sGiiXhTkN35EKrfJZIAr2DGgwNnPG3NrRjbl3Ow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.73 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 39E242C619 X-Spam-Score: -5.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: vah+Y0tJs+Cl --=-IWGMe9tYK21XCzSCNXva Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi there, I got back to an org file after upgrading to the latest release of org-mode= and tried executing the contained R source blocks. Unfortunately, emacs got stuck in the execution = and was blocked; I had to exit using C-g. Here's a minimal example src block that causes emacs to get stuck: #+begin_src R :results output :session *R* :exports both a <- 10 a #+end_src R itself does start and the code is also executed correctly. However, the o= utput from that session is apparently not returned to emacs or the buffer. When removing the :session argument it executes and returns as expected. When bisecting this issue, I found that this commit causes it: ac8c009e006197d2dad226dbe822d450aec23d23 lisp/ob-R.el: Fix session output with substrings matching prompts Reverting it fixes the issue for earlier release (9.5.3) as well as for the= current main branch. The (with-current-buffer session ... ) somehow seems to break it for me, bu= t I am unsure why no one else here seems to experience this as the commit is from 2020? Any suggestions? Thanks! Christian --=-IWGMe9tYK21XCzSCNXva Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE+9lGLw1S8YBUC27di84V01FvzDwFAmKAlxkACgkQi84V01Fv zDzTMg/9H6j2N9xL8bnIIAYVm3zkBCvJuphDJl2EL0t7BuEYi+5La8TVVJ9VvnM5 YNZLbHlbTws4lwM+6ladayunkhm8FCerXl4LWNnpI8+zp+OVBxhaRBmC5D459J3O QPQoV7NYisi4s9NfM9iAE09DFSrgMIQWbuPkFHje6UTgSHg+6UpBLwpClQ0FS+WQ KkMD2D2LbpCl1K6A3hRT0UoUC+ec4oDg80jmVmI7INK05xJM3K0O55YwlUDb1fPi aNefkC7p/AoS67fYMdBJewH90AycCOI9zGMTBgDpv1D7eqdIayALUUb7d1dtSeIL +v9tdflhXNvjWhryA62GSaBkbL4na6O1RZPDdjHs+CHhYXt/2Kk+izAzjsY1dfUm cTwA5DhiGoYCsjUyM1vHzHuwNz11leYwzAZprzwprzYn1BRkmqBGFEjp6ufc15au JykYCkij8wif5lsYxdB8s4Mi7ubyPvWHKe8bdUkmHZwGtaz7M4Wpq6b2F3bXj0iR tJbub1TAdrjFaQ1WMARpcen+F/Xye3YyFZJjg+qUViPg/Q8IAHOcq3Rbsb89B/Gl aGCI1GNkNKlK2blCgnaoBqe/mKALYy1zvRvQ6VGWXM92zCqovX595I+rC7dD5srL hOeTrLE2WyVxIbDBxoBbgCazgU24oxuRYXy8UgApdZKqZDc93DQ= =DZlZ -----END PGP SIGNATURE----- --=-IWGMe9tYK21XCzSCNXva--