From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iDYaE80HJGTXdwAASxT56A (envelope-from ) for ; Wed, 29 Mar 2023 11:41:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wHQcE80HJGRUfQEA9RJhRA (envelope-from ) for ; Wed, 29 Mar 2023 11:41:33 +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 282DE3FFEB for ; Wed, 29 Mar 2023 11:41:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phSIU-0002wb-W2; Wed, 29 Mar 2023 05:40:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phSIS-0002wH-SK for emacs-orgmode@gnu.org; Wed, 29 Mar 2023 05:40:48 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phSIQ-0004D4-Mk for emacs-orgmode@gnu.org; Wed, 29 Mar 2023 05:40:48 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CF29324024C for ; Wed, 29 Mar 2023 11:40:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680082844; bh=sv+cf9bOOQsxwemnrCWQNGVCOOVinfQh5i6GNzkEXYY=; h=From:To:Cc:Subject:Date:From; b=ZJpD/IKWy9l/qfWdPimrJ0uXu3xCifx+v9s1SQ7Tst9GGbZmqhIEjEJuRY3Rl/50c l8b25JDBxrTmO9hwN66Vq7bZPNpM6X/0aQYE2TMaNOG/uKDH3fdpevY+4BEb+niiZG 3Sv+yF8THwYinOe1dh/7JvVvr+oz4et2cqmmIOZ4E8CW75AGCAVp45tQPfwKS9FUbF se4uBg6utiNCJrAhPPTOzBCucUS4a5cvMNo6KozfnC4PfQlUbBNzBIqrnCcN2OMgtT 8zh9Dr/6U0kIznHn2q2EonhjSL+9qjMdwU+L+ikXx/Zp2DTvvtGP7RQGJqTxNL7Tp4 LFRNOOBE2DmMQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PmhPS21j0z6twm; Wed, 29 Mar 2023 11:40:44 +0200 (CEST) From: Ihor Radchenko To: gerard.vermeulen@posteo.net Cc: Emacs orgmode , dto@gnu.org Subject: Re: [PATCH] In case of Sly, let org-babel-execute:lisp use Slynk instead of Swank In-Reply-To: <480536eb12bf49144384f4b1a85d8bdf@posteo.net> References: <480536eb12bf49144384f4b1a85d8bdf@posteo.net> Date: Wed, 29 Mar 2023 09:42:49 +0000 Message-ID: <87jzyzx59i.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680082893; a=rsa-sha256; cv=none; b=Ioo9P3Mzl1+btRv3MoKfkX+gS+vw2jYCyUriaJs9sRNOrjKQI1Dj4ejnSHM/0eO1vE/JxX uMtW57EmjEBAwyDN9x4XoQ0O8Wgrgz0hjCybE4AIDasVphp2Y1rcvx4Cr2Iz9QJOpPQzWE kq+kT+VhgPqR4byhAkAhA2Ib3TNVUDv/dOoSTuEZgP1RrhroZlVNWJPRcZquuqWMrVtrsi IKQt4ioKlkkmG+14iHIGzcrI5oNjPWQqESrolMr0/EKgr62vLS5fCj65Ofr3HpZkGt2Id1 tqd6s5mp5BTSku6w5IVudmv0TkGwIfg4olrmvQWv1KkbQo8lDC3zHZ54tlq5+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="ZJpD/IKW"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680082893; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TD05JxnPt+YqprucJar3rOCU8stBGIU1r6AjQpqdDiU=; b=ASXip+UiKxzEv5y08LqiMBGjjIIgzHvqDtev1XJxOWogF8xW59JnnrcJm9u78tmKJJzBo1 VRTYwYx+Q/jYP7wfJ00uM6XccOF2u7e5tSXippUMiFJYiPZcZd/jxvRwRG6UImAtow8+Jn dZWG6iMc7O2m91HiR7LxHAo9fvBUhAUB7CQFKPOqRrXXBEFrU4OW1flDjROoz+9y0sxJqz S2xvR7FlT0hrLpQgh5Jzz3R82Jb77QT5dm/6UEwDQU8WwH/iLkaL8r1uaMJEQGMMNPF50A ofiAJx6NIi2vUWfOry/cfAngdbXx048FCkL8BQuhU08rCf/JB7/duXdPLd7O2w== X-Migadu-Spam-Score: -6.24 X-Spam-Score: -6.24 X-Migadu-Queue-Id: 282DE3FFEB X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="ZJpD/IKW"; dmarc=pass (policy=none) header.from=posteo.net; 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-TUID: eReUuhKYKA2w gerard.vermeulen@posteo.net writes: > The Emacs integrated development environments Slime and Sly > communicate by means of similar RPC protocols with different server > programs: Swank in case of Slime and Slynk in case of Sly. However, > the code in org-babel-execute:lisp always expects to talk with Swank > because of the hard-coded call to swank:eval-and-grab-output. > > After starting a Sly REPL, calls to swank:eval-and-grab-output do not > talk with the Slynk server started by the Sly REPL. > > The attached patch "soft-codes" eval-and-grab-output to become > swank:eval-and-grab-output when using Slime and > slynk:eval-and-grab-output when using Sly. I do not use ob-lisp, but this patch looks reasonable. I'd appreciate if other ob-lisp users could test the patch with both SLY and SLIME. I have no comments on the Elisp part of the patch. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at