From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2Io1HE2lt2UQ8QAA62LTzQ:P1 (envelope-from ) for ; Mon, 29 Jan 2024 14:17:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2Io1HE2lt2UQ8QAA62LTzQ (envelope-from ) for ; Mon, 29 Jan 2024 14:17:01 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=W8XCLtzO; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706534221; 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=KC/opX3OAUAHw89LECNEr5bQp/ZQF+zq4a1ydEUtkZg=; b=geh71VQKDBGB0MwJ1zWjiaCEbEQs+Nqbgx6Kdc9J8qMWKC55q4COCm/0QJtmFaQIjntKSs 4Wu7MMbtEaokKmPFhPahuV2ZMoGDNv+d2XiZxP+9MBOk5BRp/d/MHdYaY/xepmbAls7Hjg /0hu/QT3sTMl+lrcCex2WMY2X3dfK+B6j3t+pvGOSVMXm9k6ZNf5PaSxwDrzKlac2PtRUN 7iLby7c2TPMFazo0sEP88LCzgN/VR9rNQS9B32xf9C1FHIm3kNRp6A742uYvc6cj+v9r88 ifFFavQ8JfcsQZ35eGsrS3A3rWk5JXN+iHE7hwhsZeoP59yz3NNuL6hjGoMV4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=W8XCLtzO; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706534221; a=rsa-sha256; cv=none; b=ZaF5TsE7/HtUTUF+EP+F2DVgDlyGxEVId1RwcREOjwXE5VW7AvPx94y783ItpYnHf9qYPX fPV6nYT55R17yB2dDdGpcWG8BH99ULL6HSQv5j5N5KRCOn/zly40qycYYxKYrmxiLinlNI XVlteQeVtv6hkXCQVpNJ1QFsntVGrf1SWpalaKiihTxb/Gw8H+100HhTgcyNHzwxwxp6QF DUuxPJUD/XJZ46xdM0IOk3QGo95/Kc3+TVk5l+PKHjqJyfzc9nTsDobgwZGhECvDNxEYSn 65wf7x51FfYxQL0HW3xPrXUMAelcFHowKqbVWcMus9ZrWwkleUliRnzsxcD8Jg== 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 4319C4421F for ; Mon, 29 Jan 2024 14:17:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rURUP-0004n6-Gf; Mon, 29 Jan 2024 08:15:53 -0500 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 1rURUN-0004me-Eh for emacs-orgmode@gnu.org; Mon, 29 Jan 2024 08:15:51 -0500 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 1rURUL-0002kT-15 for emacs-orgmode@gnu.org; Mon, 29 Jan 2024 08:15:51 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 837EB240028 for ; Mon, 29 Jan 2024 14:15:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706534145; bh=nqBMt8HdcCv/hungTFn9suV/8NFQfX+rrjEuEolwfG4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=W8XCLtzOuxRKW5Ow3yex9DXDtHuY5ZZgRbYMdechphkTJJeZuPpiEDK1Z/ISvhKsj 4vl6rLK7embmth4FTtC/LGY/7bfWFuIVE0+XIJnY1QXoT3ZzC2Vuc0Z6kGLhZmLuyT ApBBopChSsYYa0pTG1eE+GIvtwwhxEvhTUNQ92zkD98uNz/s4ZAWREggqj3xrj2nkM 3mP9fRopDScyx7be8jl1Mw+WKwU74EQspb7o6+8AlINGtxdoa0FV/gqM56mWCqlvyH sTCBhiPTqfOolcb4Nf0r8bY2UqyvNQHvRYD0I/KgVOKI+f1IvIctpqnMnrs+FoAmI8 UQ15/1QKXgH/g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TNphJ5l1Xz9rxF; Mon, 29 Jan 2024 14:15:44 +0100 (CET) From: Ihor Radchenko To: Hunter Jozwiak Cc: emacs-orgmode@gnu.org Subject: Re: Connecting to an Already Running Scheme REPL with org-babel In-Reply-To: <87r0i03kgq.fsf@gmail.com> References: <874jex3xxh.fsf@gmail.com> <87v87dm613.fsf@localhost> <87r0i03kgq.fsf@gmail.com> Date: Mon, 29 Jan 2024 13:19:19 +0000 Message-ID: <87il3cmg4o.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.86 X-Migadu-Queue-Id: 4319C4421F X-Spam-Score: -9.86 X-Migadu-Scanner: mx11.migadu.com X-TUID: /WSH8YEWvtle Hunter Jozwiak writes: > Here is a patch that provides this functionality. Thank you! > Subject: [PATCH] org-mode: allow ob-scheme to accept a remote connection. > > * lisp/org/ob-scheme.el (org-babel-scheme-get-repl): introduce two > optional variables host and port. If there are not given, just run ^^^^^^^^^ arguments > * lisp/org/ob-scheme (org-babel-scheme-execute-with-geiser, > org-babel-execute:scheme): take these optional arguments into > account. ... and add two new optional arguments. > @@ -231,6 +235,8 @@ org-babel-execute:scheme > geiser-scheme-implementation > geiser-default-implementation > (car geiser-active-implementations))) > + (host (cdr (assq :host params))) > + (port (cdr (assq :port params))) Please declare these new scheme-specific header argument in `org-babel-header-args:scheme'. See `org-babel-header-args:C' for an example. This is necessary for header argument completion to work. Also, please document the new header argument in the ob-scheme documentation at https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-scheme.html (you can submit a patch against https://git.sr.ht/~bzg/worg/tree/master/item/org-contrib/babel/languages/ob-doc-scheme.org ) > - (and (not (string= session "none")) session)))) ; session > + (and (not (string= session "none")) session) host port))) ; session This does not look right. Your change will disable session support completely when host and port are not provided. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at