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 sPptGfFnXmOVngAAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 13:02:57 +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 CIhbGfFnXmNoTwAAauVa8A (envelope-from ) for ; Sun, 30 Oct 2022 13:02:57 +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 2F6D23ED7E for ; Sun, 30 Oct 2022 13:02:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1op70s-0002u0-2D; Sun, 30 Oct 2022 08:02:02 -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 1op70m-0002tD-Px for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 08:01:56 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1op70i-0001ed-OO for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 08:01:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 39F15240104 for ; Sun, 30 Oct 2022 13:01:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667131310; bh=5k5RURViI5jvRYBI0lYocnj6/L50xBze9IF5TZOLDLU=; h=From:To:Cc:Subject:Date:From; b=V/v+B32SYcCxyoE5ai8RDywK9Hozy98buXWXxomSe6n2mL9AjJDzA5hZ62oOWlpsX 8W1CLEXwwOjHFrUNLME90+e+d2x+lenLmxMFbWnZDCEOvNc879EUJoq7KWAAhkz4X8 T/2F5GGIhDM9Pnej7MP6gUgRgVXTxumOAoQggvh6o+ZzpKqErOHnWJHg9kcB3AfjHe IYt9EcJV1RDJYDwk1uwQfHPPLcRzxkV+0vIjxjAHRTHd5r++klSzsYTWKiMV54OyFq 7LJRtV5tZvM9afOpwdPi4VyyQQGU0YAiaBml0dj4MWT80lHkTDgRv9u01rFOBOkL+d 1IofMZRytShxA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N0ZdG02K4z6tsw; Sun, 30 Oct 2022 13:01:37 +0100 (CET) From: Ihor Radchenko To: Daniel Kraus 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) In-Reply-To: <87bkptmu5v.fsf@kraus.my> 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> Date: Sun, 30 Oct 2022 12:02:20 +0000 Message-ID: <87bkpto6yb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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=unavailable 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=1667131377; 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=FRxHk04udLoC0qP2tRYG9Z9/NyWQOR6yJGaLeF0OLqs=; b=naUS92am5xM1Ku7cVw27PzMlYri1zac6h+LhfoVCtn/bQJC4u4G3r2rstBGScQOAfw5ON6 yl4Nzfjt4P9hk48rPrdTt2/by40fo2T5zTActFqnw8c3TKWaPpQ0U+OcykSeIT+6TGyml3 td9gOP1w6o2Px2w5ZMkrc2Mv4VIU13o4GwqO9CSxetWyaMA3jCu2vqrlyDHasNw102Uyvv pJVrugAKo8i/maYeTf38zA4ip+3XsTZR3a0MLbq3LXULN1FJhA7CNc5yaBE/hQP4Jyjqs+ YeRQaY6GxwKWkaBbXwGphxMhL523aPBdWZlj27XOMf8IZ0/e1R9alCWBHavDZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667131377; a=rsa-sha256; cv=none; b=jFUQYp+ZhDmpAPDBAQOZ+4JUx6OqnmtHccAy9p87F3I0hGUnqk/2eLomaE/eNWjUxZVNux hTshYzC9TT387GrxakRrzYoCJi3cFxyk63j0xO0kd32DhecIqnHoGY9bTzP68htFvpoZYZ r8urR7TA7LCr1xR9BvhXqvbbTV6i+INQmo7GZYdnKiY/84wb5J1XzlRPrGbiS3OouLBidy 4hYbwRCPf5gx1dMRkhae1WG+hc6xzxALkv6CWaL/rTCBIoslqfIt89XicQo/nEypV39prV 2XvwzhRPNyrOn80INZzOguq05WDDJP2dvclWb4qgJLbOCuckbbkqRmh0NJPPLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="V/v+B32S"; 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="V/v+B32S"; 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: 2F6D23ED7E X-Spam-Score: -3.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: p8lXGfoCPj0b Daniel Kraus writes: > Bastien writes: > >> Daniel Kraus writes: >> >>> I think I'll go with the big `cond` above to auto-detect what's >>> installed. That's probably the best out-of-the-box experience. >> Indeed, thank you! > > I would push the attached patch. > +(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? > I'm not sure about the `:package-version` keyword in defcustom. > I want to say that the default value changed. > Should I do it this way? Is `(Org . "9.6")` correct as it's unreleased? Yes. 9.6 is the next release - our main branch is labeled Org 9.6-pre. So, using 9.6 is correct. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at