From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 kCSzH1hGXGNoDwAAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 23:15:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EHrKHlhGXGMWNAEAG6o9tA (envelope-from ) for ; Fri, 28 Oct 2022 23:15:04 +0200 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 EF354D44B for ; Fri, 28 Oct 2022 23:15:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooWfx-0002vq-Qd; Fri, 28 Oct 2022 17:14:01 -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 1ooWfu-0002vH-98 for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 17:13:58 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1ooWfq-0004Bd-GC; Fri, 28 Oct 2022 17:13:57 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (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-201.mailbox.org (Postfix) with ESMTPS id 4MzZyz11BHz9sSn; Fri, 28 Oct 2022 23:13:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kraus.my; s=MBO0001; t=1666991611; 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=8DjbjQwp03U58d+AxxMtefAm6phLmweBZlbMje8c3WY=; b=FJnCfZdXUibeBWAgTxks78x+Md1Xc+IwZzYLjYjjEMsJd0MPt5n0G6Hwm3hUsmdYK0BjmJ 9fa+3SGO736sRg1PwN8eA/6Gybk0cD1ridxs4xCbH8tm2YzwDZAH3jgiNFqsegS1C4ZqYP /pZuyjVsSNFAcxVQWCEPnxYp4Jlz1pQLW+99bbxUV2wLz0JGXEhi19e7WNcfpPiJMk8uxj +2GOrM8D5jZdYp7JbR9+g1/GzXyfy195BD0IsBCrDTz0tbFfKawQsGO4G+3qFam2y6b4fP DsSiPEPtNIu95mVkqS1zyjIcDD0PnZcTHHfaa1eEVLosu1+KV9A4WMccp8dFsw== 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> From: Daniel Kraus To: Bastien Cc: Ihor Radchenko , numbchild@gmail.com, emacs-orgmode@gnu.org Subject: Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list Date: Fri, 28 Oct 2022 23:09:58 +0200 In-reply-to: <87o7twqmc4.fsf@gnu.org> Message-ID: <87fsf78xeb.fsf@kraus.my> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4MzZyz11BHz9sSn Received-SPF: none client-ip=80.241.56.171; envelope-from=daniel@kraus.my; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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@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=1666991704; 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=8DjbjQwp03U58d+AxxMtefAm6phLmweBZlbMje8c3WY=; b=cPEY3Uxb76uvBTtOp3BibuaL0Ne/43tzLnrXb8uTftcdHeWqEX6V83Qq9HO4+l4DPoaRCq lftrv0+Yd5RK4EfG6DilsGbHaFpPDa39C+W8qt1Rx+uCgrltKOMzI2P7Bl45NbAgzBMKk4 v/xAwArtEB180AcIoZV7ibimCIr3GFaksvJh91haY9amBkDQLpV+mKBSlgvxgsbrWBAoif viCyIeiKPaAXJkk+DILhqPSmwxB3OY1j55ayV+EL0nuGPbk2O7K42Hl4s8O3OZApWaure5 ZE7GXsMytPAkEG+W76hBClXjy00zxKGfGmaS9PE8kNJCuh3upneWlf/aLVnIRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666991704; a=rsa-sha256; cv=none; b=YhG+JPMqeucGKeWNCbUiJjVEuU4bx7lkBY8sj85/SAiTKajVFhl1+lgp3RfOw5hmFtWdLy LO9h0PFTQE54f6EaI6ieIVSHDxpvlJdFMe4fbpLCuqBlw5aYt27Upz2eRIMGpma5WNMtmc 84j7ZxjB6zN33JC+GT1AN7jOjqXDKHDKlQ1+MC24LF35sVheq/bFFxIhjWcWOM1Fj0p0HW kpSfPU9AS9gd/WLmrlxgoCgqVxeLQbetW7iod+bCUKPdSZ0vP9cEfABf9uN4BIjwqPlmWU zxAW1BGjBrvwagAblwIYxEuMyDW/7GZBZotON2bGZhXPDljqxdblNT/dN7arrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kraus.my header.s=MBO0001 header.b=FJnCfZdX; dmarc=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: -8.92 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kraus.my header.s=MBO0001 header.b=FJnCfZdX; dmarc=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: EF354D44B X-Spam-Score: -8.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: TKY/Q36cjTLo Bastien writes: > Daniel Kraus writes: >> I would set it to (and (executable-find "bb") 'babashka) so it's still nil >> when babashka is installed? > (You mean "not installed", right?) Of course. >> Or we could even test more available backends like >> >> (cond >> ((executable-find "bb") 'babashka) >> ((executable-find "nbb") 'nbb) >> ((featurep 'cider) 'cider) >> ((featurep 'inf-clojure) 'inf-clojure) >> ((featurep 'slime) 'slime)) >> >> Or is that too much "magic" in that on some systems the default is bb >> and in others it's cider etc? > > I think this is acceptable magic: perhaps we should first check what > is done in other Babel languages and align with their level of magic > for guessing the correct executable -- but I suspect Clojure is a bit > special here, in that it has a lot of different options. I looked around a bit but couldn't find another babel package with a similar problems, i.e. that some backends are completely different and not just changing the name of the executable. 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. Cheers, Daniel