From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 +L8RO310XmP2gwAAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 13:56:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iAgCO310XmPFugAAauVa8A (envelope-from ) for ; Sun, 30 Oct 2022 13:56:29 +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 993C33EF7C for ; Sun, 30 Oct 2022 13:56:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1op7qs-0002Y0-D4; Sun, 30 Oct 2022 08:55:46 -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 1op7qq-0002Xm-JV for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 08:55:44 -0400 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1op7qo-0001Ea-H7; Sun, 30 Oct 2022 08:55:44 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4N0bqX1myKz9sS3; Sun, 30 Oct 2022 13:55:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kraus.my; s=MBO0001; t=1667134536; h=from:from: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; bh=yVILjW+HuQEidFkNOcHZWlOH1gYKv7B4IZZ/Tm3yao8=; b=MCsmqYpZSGeasMxqogDfFp9y4ZxMfh0O5zah5CAxJHr3iDxYXh/u8YnfTVRjTzpKlK0LQW LzmcedjHWUA+kShg5mgRN5V52g/UWlk9hw1cSXWD6XX+FXdPAE4MQ+Khuq89Yn5WsNB0ez gHwQAGOtiZyfXuw+bQxwtH7hwEsCajgzOx45Ic0mJpcE+yAfABtTSywmzBv2vr1VnpLtst 7mWdIAlTmAG/iSoWaCPJzT7jKaNCjaz6/MdmhVKS54GMA6QJy346O4XAaeQJxBx8Z7IIDj +kORK8Z7WKHN09MH657SWs2qnmXHJbyEi49JcHvNQx59/xmcrPR3nj9eigBaRw== 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> From: Daniel Kraus To: Ihor Radchenko Cc: 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: Sun, 30 Oct 2022 13:48:59 +0100 In-reply-to: <87bkpto6yb.fsf@localhost> Message-ID: <8735b5mpxc.fsf@kraus.my> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2001:67c:2050:0:465::103; envelope-from=daniel@kraus.my; helo=mout-p-103.mailbox.org 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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=1667134589; 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=yVILjW+HuQEidFkNOcHZWlOH1gYKv7B4IZZ/Tm3yao8=; b=rVhX1wpvRlZ0028GUra+Hfc4iLt+ZjGbN1T7fROsG+RgPHU1RzTzIwrwm2NbJpkZWJ8Eeq U5JKqFIM4urKXZH8gSzjFDUtsXeK/w2MgkbMJicliLG1vkKtCsljCDtEJULvfxg9PaV1ml 6TymZR5Jm08ckaGvqKUe9+4SYLjkRNy7+JHgy83drGBXUEm+Fk47847wRUQ+QT1dX07d08 DZoCzbRnj+Tn9L/ZccHg9JCtQepp/urqfRr0CVtmBc5IVIQJBP0juhkIphi+BIMl2y96+J q+AvejeJkuGH/+LzBv8NrJX4oXlVMTHOepWBOoq81h1WhsDUsLelejlZeVMlPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667134589; a=rsa-sha256; cv=none; b=HtgwP5GEtl7Z50JAzo/jZp0iKIuXc7p084Pnr2fkqa55iRAc8GnJhWIrRhNhKfq/vDhU4h BC3cYgqvyKDSjJMPKiHsgcF9FNZ6rWM2jK85dpMC8F8hcs9GQOr0ifYz5Z7t2jxvgeB31E opRC8rY5EkROkLwTE8Efnf3WOBr4Sut4B8/5gJww28NWEVa9RfIcl7OZSYOWaOpRvqs4uo wNiDscJobg/t0KTbu9G9KTT68FKxliXRzatf7JU3PVrl3DbpH1KeefAnkHWRySYGGupERk HQUVXTEHmf+VIDu7MBJNi9ATsBkpAk56J0hofC1LdacLRc0UTaPhz+0uWtWZlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kraus.my header.s=MBO0001 header.b=MCsmqYpZ; dmarc=none; 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=kraus.my header.s=MBO0001 header.b=MCsmqYpZ; dmarc=none; 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: 993C33EF7C X-Spam-Score: -3.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: HCeuN4IlLCVe Ihor Radchenko writes: > Daniel Kraus writes: > >> +(defcustom org-babel-clojure-backend (cond >> + ((executable-find "bb") 'babashka) >> + ((executable-find "nbb") 'nbb) >> + ((featurep 'cider) 'cider) >> + ((featurep 'inf-clojure) 'inf-clojure) >> + ((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