From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8P8XL78lX2MNNwAAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 02:32:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aLYgL78lX2O4FwAA9RJhRA (envelope-from ) for ; Mon, 31 Oct 2022 02:32:47 +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 778B325B37 for ; Mon, 31 Oct 2022 02:32:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opJei-0000nl-Ti; Sun, 30 Oct 2022 21:32:00 -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 1opJeh-0000nS-OK for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 21:31:59 -0400 Received: from [39.171.215.96] (helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opJef-0007Bt-EQ; Sun, 30 Oct 2022 21:31:59 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id 61BED6AFB809; Mon, 31 Oct 2022 09:31:46 +0800 (CST) References: <62520bbc.1c69fb81.d855b.549fSMTPIN_ADDED_BROKEN@mx.google.com> <87r0yvoycr.fsf@localhost> <874jvp9wsg.fsf@kraus.my> <87r0yss54r.fsf@bzg.fr> <87zgdg8g2e.fsf@kraus.my> <87o7twqmc4.fsf@gnu.org> <87fsf78xeb.fsf@kraus.my> <87k04j6oic.fsf@gnu.org> <87bkptmu5v.fsf@kraus.my> <87bkpto6yb.fsf@localhost> <8735b5mpxc.fsf@kraus.my> User-agent: mu4e 1.8.10; emacs 29.0.50 From: "Christopher M. Miles" To: Daniel Kraus Cc: Ihor Radchenko , Bastien , numbchild@gmail.com, emacs-orgmode@gnu.org Subject: Re: Auto detect ob-clojure backend (was: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list) Date: Mon, 31 Oct 2022 09:31:09 +0800 In-reply-to: <8735b5mpxc.fsf@kraus.my> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.215.96 (deferred) Received-SPF: softfail client-ip=39.171.215.96; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001 autolearn=no autolearn_force=no X-Spam_action: reject 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: , Reply-To: numbchild@gmail.com Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+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=1667179967; h=from:from:sender:sender:reply-to: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; bh=zrWJ+gA45RumFeX4CMMHmHfye+/ZX+FUtpSHDKaDRus=; b=JztcKcbmxEJLNsP/zfjNn5KOq6QPxgW5D/hK3KxlUicLObtEaUxdyuEfVLsUp6wknJGJqQ bMaEGUr9ZiFSZSSE7AY+sxPihMIpxVzB0oiGcHkCOHczB0aObEcpki2L3wWh/U5LMpMoxX LuwjMyhtvnPhaRUS87XZV7XdnKeKTfmgDOr10J50BtDIjzFKtVpWmJT0xhupgtFa9ZJnmZ iG6VH8Ck8ZiUwCYxr8N9WSxfxfJXczqtpuo3rd05WUYzlOKg9Jy3iHsfUxGWryS2ZrT4Cm 2olrslODC9P2uUi5pIT/wU0RzerGj/TIIxFYQiiR7FLxhgg5Uzmhs18phaDVsg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667179967; a=rsa-sha256; cv=none; b=SaRFWJoTWInzzn+fpbh///oakiVVVtvVIoVlZ2452NZCoE7Zu19Fqf3c0hRk3RYyNtnF/d dRHGq0S4FhllnzxhqYbP5tSn/iNwfF9hh5jAo+g6Zr5JEtNAlJCpS+oIc2T0/eYoqDdLVo IalT3rVU/0FPNvz5nlKMg/7E0UbcfqzJVaC6zx5H2zPLEJyQPMoPfHHTLUlXgiaEDkXSDv eM0h2AfpvlAqmM60WGJXoxKNdboLw04LYn4CBl9XrWGAfTF7oTMm209QvvAu6rwpQZB/D1 X5gZm7M6eQGYy6LRDV1iboNvC385K4rgQEgk8qQoBaoZDeomFJr3pZS3PAfZjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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: 1.64 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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: 778B325B37 X-Spam-Score: 1.64 X-Migadu-Scanner: scn1.migadu.com X-TUID: kGGR5y+6X+02 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Daniel Kraus writes: > Ihor Radchenko writes: > >> Daniel Kraus writes: >> >>> +(defcustom org-babel-clojure-backend (cond >>> + ((executable-find "bb") 'babashk= a) >>> + ((executable-find "nbb") 'nbb) >>> + ((featurep 'cider) 'cider) >>> + ((featurep 'inf-clojure) 'inf-cl= ojure) >>> + ((featurep 'slime) 'slime) >>> + (t nil)) >> >> What if users have, say, cider installed and also babashka executable? >> Will it be expected to use babashka? > > Yes. The only thing that makes me slightly hesitant is that e.g. > someone doesn't have `bb` installed. Executes clojure source blocks > which are then evaluated in, let's say cider. > Then they install `bb` and the next time they start Emacs, the same > source block on re-evaluation would be executed with babashka. > > I think this is still the best out of the box experience as it > "just works" for most users without having to customise something > and if they want it fixed, they can pin it to a certain backend. > > What's your opinion? > > Cheers, > Daniel I vote for use Clojure CLI like bb as default backend. Keeping defcustom option for user to setting default backend is fine. =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmNfJYIACgkQG13xyVro msM65wgAunaR5jzqm/SMkvfm9p+Mc2LA6y/yTcu1VQxVlUQxG66i468q7dgsXZvW hfwEbZA+w8cYKxMBL6foO8vYHc1oxIvBftJiXp/c8qRUHZ7h13J3ahR/ROsioqOt Z33o+CmpMzGJlhybIHFyOVKunMrCuTQjvKoohE/Lj7X59n1L0NzPEZr/iKpSfubs GAijgGoJ9Eh2suh8lNhpCf3x/7GBeFPVI2r0myiVya9kMCguDJVfMHVG/aH1da4P /S1Urv1k3nzwb7SnvDLDPv8XMO9yO3NlsfU9ijlrV6aCjCsxhzmJsLPbsA2MfDNV x6ObQ5WB/9F2YQMKalAzBYRROjT4hw== =1K1P -----END PGP SIGNATURE----- --=-=-=--