From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8D1RCBByXmP2bQEAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 13:46:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EHVACBByXmOFUAEAauVa8A (envelope-from ) for ; Sun, 30 Oct 2022 13:46:08 +0100 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 936EE3FA90 for ; Sun, 30 Oct 2022 13:46:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1op7go-0007JA-AT; Sun, 30 Oct 2022 08:45:22 -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 1op7gm-0007Ie-4L for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 08:45:20 -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 1op7gk-00047U-4j for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 08:45:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 307BB240026 for ; Sun, 30 Oct 2022 13:45:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667133916; bh=v+SnEwIJ+XGAgfMjS4dqYyVBq1HvkJip4OmdqAkZlqA=; h=From:To:Cc:Subject:Date:From; b=mcqvTPiZE9Jpeu5LWOxlcnVlypDb5YUc/RPtW5OcOJNBmAAMdXWBMMxdd0ylubAOX jhoa8qYGbilhMPtkgabNWz/IBJJJnpvjDm7Y1tHVzRxdW8oVs/j2wIicD5/1yW75lS Q4Ew1uuoS245hJ1otPpQDd18T2JueSJq5uy07ls4PfQH8rQ1RO9A8vSxY7+GMSX4xC zuPZHRrLKxB8n+s+Zm0gTkvHgNYIDN6F7nyfvrShacQkiyhsO11s2wfaMzfKAprF7P XDq2f+n20M6t6lILNQcP9WseWF2edwjzLS1dChZs8+qsdlZGKbTfef4UyKf53EOGSi IePL9Z7/fSnZw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N0bbW3CNfz9rxh; Sun, 30 Oct 2022 13:45:11 +0100 (CET) From: Ihor Radchenko To: Daniel Kraus Cc: Bastien , numbchild@gmail.com, emacs-orgmode@gnu.org Subject: Re: ob-clojure session support (was: ob-clojure eval error when has comment at end of code line) In-Reply-To: <877d0hmt5y.fsf@kraus.my> References: <87lep3oxcu.fsf@localhost> <878rl1a1e0.fsf@kraus.my> <87a65gmw3f.fsf@localhost> <87sfj88ep7.fsf@kraus.my> <878rkzl49x.fsf@localhost> <877d0hmt5y.fsf@kraus.my> Date: Sun, 30 Oct 2022 12:45:49 +0000 Message-ID: <87tu3lmqde.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667133967; 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=V0kc2B8LRHsYGNATaRZTUicclAjissyJnObAL4bOvAI=; b=EwetAO6Corjlmqx5MASJWfVchh6jS8cwsniqagPz6bpg/W9pB7vfOmuZplxYucCY379e6Y 5KbIqG8h+0IgHvXMmGAoFt+fn9c1IoKIXnrbUteMAOk/ZxI1DUt70DU7KwvyDRhPzTg9tk J/4fkvky2ezdmq91lHmRODwXe5vY7dVdCQEp6nCiKN0AxKU2zeCiNsSDw2lYzLgMyDkDel hUW+Og7An3EfDHDVqea1oTR9U6GWn/ZD95gtw8QBn7UIfua4J6TkNr1dn3dxF9MFkkodhw t8kYLzWmKBK5/d/x61P1+wTXQsDO1XoHs0QWDbjTW6OqzhpeiaecOIDIO1mHyg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667133967; a=rsa-sha256; cv=none; b=ffeVQBawTTYSwxIdduEflp/P6p6wvGc+23Rh6Sm970ykkaE/AL/0VRVlGA5jl8JudQoIPF lE3fG4/mCpNo/toG3r5GYwOCkM16dFBi8VRBd8GQZvJzkEBHLmpKjPbCtIZBuTWtdnjQK6 vLYVZeONMIgmHbda3u8hGBBrNafcW5pAkgI+LloVPsYDTWngMhbYGSDxxHA4s5MdP8JMr5 VNb82Zh/qBx1fIsKvmpOJ1EuCo1XO08rjjxGRZ5IGhv2MKc6llLk6nsC6YCBrhajVGKWlJ hP8ZuOgzcBQBH81adKBhIeoDlqNwWmTMhRpqnCz892wzx2fK0/ZMdPzRjW4cxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mcqvTPiZ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mcqvTPiZ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 936EE3FA90 X-Spam-Score: -3.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: VBwA+RvG6C6/ Daniel Kraus writes: >> Let me know if you need any help with the fix. > > I feel adding session support for babashka and nbb (and maybe a future clojure-cli backend) > makes most sense. > Relying on `inf-clojure` would make this task simpler but this is also the > package the least amount of people will have installed, as cider is much more popular. Ideally, we want to support all the backends, but just cider (popular) + easy ones will also do. > Is there a good (and simple) example of another babel package that implements > session support but doesn't depend on an external inf-xxx package? > Then I could use code from there. I'd say that ob-gnuplot is the simplest way. Given that we have an equivalent of `gnuplot-send-buffer-to-gnuplot' command. For more direct comint sessions, we have ob-comint.el library implementing generic interactive sessions. You can check out the usage of, say, `org-babel-comint-with-output', by different babel backends. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at