From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gNjGNQNHGGTVFwAASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 12:44:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yCrnNANHGGSFLQAAG6o9tA (envelope-from ) for ; Mon, 20 Mar 2023 12:44:03 +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 5B720BFBE for ; Mon, 20 Mar 2023 12:44:03 +0100 (CET) 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679312643; 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=asICV1ACAwhNebCOO87yvRqLLyGu9O6haZE4Us5LzpI=; b=B6bfZ5YyZzRRiFoiqkq+7T/AuQpPZ6Gmu2vuYEkf8nJ8265alJqLxG5CC3/A5e9GIhOA6c VnhIh6LyeMxfta+k7KfVHDhYKTJN6rGTrZ3Euii6dzPzMUrUfaPMQqo9B4GDIBahwc6ai/ 7xq5mXlnULinVlq8Ob/1l3g5Rnp2t8phPuk4s8qJF9NsmmjN3cWzuETyTgAr1C+1gnDw4k hWOi/IB/f27ls6NmDEiMjpzOFJ5GMXW6qy32TP+GxGaianGlMnj1FxI5eD32xOiOLWYZYR 74Lup3ua/IDovqifwfjk64OThsAaUCDQ9BEB6V3QZZux97u8EfHOCLPd8slKFw== 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679312643; a=rsa-sha256; cv=none; b=kpkp33C1rI2fxsU+RdLW1H4AGP2OS+msJVGwIt8+z0xctHneWkqRQ46mJeI+gkBVXV6mZp 42tKMXKqVFibDbMDlM/fh2nyXOkjmcCBgEprJkbygHSF6DAt16VVndfRmLVk2VCgxlmtVj VNedtzavVcWMsZY1zkeCPWseTejfPH//p6ssu3YUR5Fv1eMfXqvq1Dqy4yHJVsOiDJXcsf rdQZ/b5SQCJuhuj5o6601sS509lLy4KQLCStgPLAR6I+s+i5lftCHRIESODk/7ynMttx7x GDLvYaE022/efNRjOWFxmAKQ6GbmDQ7fNbIK99aXyT2vz5FaTQ/FToYmQfpTaA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peDuz-0001vD-M2; Mon, 20 Mar 2023 07:43:13 -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 1peDuy-0001up-SX for emacs-orgmode@gnu.org; Mon, 20 Mar 2023 07:43:12 -0400 Received: from [39.171.215.161] (helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peDuw-0003lK-L2 for emacs-orgmode@gnu.org; Mon, 20 Mar 2023 07:43:12 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id AB32681E858C; Mon, 20 Mar 2023 19:43:00 +0800 (CST) References: <87o7oqxn6r.fsf@localhost> User-agent: mu4e 1.8.14; emacs 30.0.50 From: "Christopher M. Miles" To: Ihor Radchenko Cc: stardiviner , Daniel Kraus , Org-mode Subject: Re: [SUGGESTION] separate ob-clojure.el into Clojure part ob-clojure.el and ClojureScript part ob-clojurescript.el Date: Mon, 20 Mar 2023 19:36:35 +0800 In-reply-to: <87o7oqxn6r.fsf@localhost> 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.161 (deferred) Received-SPF: softfail client-ip=39.171.215.161; 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: X-Migadu-Queue-Id: 5B720BFBE X-Spam-Score: -4.65 X-Migadu-Spam-Score: -4.65 X-Migadu-Scanner: scn0.migadu.com List-Subscribe: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: HxPq+mtmS6Aj --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > stardiviner writes: > >> For now, ob-clojure.el contains lot of code for ClojureScript. Only some >> code has same functionality. Like CIDER backend. In the future, >> ClojureScript part code will increase and different. So I suggest >> separate them into two source code files. >> >> WDYT? > > The only downside is that people might need to > (require 'ob-clojurescript) > I am thinking if ob-core.el should try to automatically guess the > correct library to be loaded. I think this is an good idea. It let user don't need to load ob-.el before user really need it. The ob-core.el will automatically load related libraries. For now I have to configure ob-.el like bellowing to defer loading: #+begin_src emacs-lisp (use-package ob-clojure :custom (org-babel-clojurescript-backend 'cider) :commands (org-babel-execute:clojurescript) :config (add-to-list 'org-babel-load-languages '(clojurescript . t)) (org-babel-do-load-languages 'org-babel-load-languages org-babel-load-lan= guages) ;; let `ob-clojurescript' babel source blocks allow evaluation. (add-to-list 'org-babel-default-header-args:clojurescript '(:eval . "yes"= )) (add-to-list 'org-babel-default-header-args:clojurescript '(:noweb . "yes= "))) #+end_src The duplicated part code bellowing is repeated for every : #+begin_src emacs-lisp (add-to-list 'org-babel-load-languages '(clojurescript . t)) (org-babel-do-load-languages 'org-babel-load-languages org-babel-load-langu= ages) #+end_src > > Otherwise, I am neutral towards this split. > > Up to Daniel. =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----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmQYRsQACgkQG13xyVro msMlPQf+NTO1o38NQMTubRhQnEIB5Jfg3jTKZQ39d1G/i3py0fJGpm6MbsdUiPoH RBiu2XJwoMKekPW2ROCnJdmspeSDdAlYZMlTDUz+aONr5GoaXYqQhIHmF5E5ql3v 93hOfPORmDe6NXwSrGKXqIPJPcRf5lBdxH323+Is2n3iX4faAHPxRLHWvsnAOanY JvLYp7ta+qQ3nbaYdsmSzkb/Yz/hRPmG91fMFP8enTMlKOi191ylHX0kmxW9lg+S 8OYn2OqHNBSPFGwvJ4qai92jyxe0B5vJwCYGaF5ZmSJ9k4ddUdweTsDmH+7FEeoc vhCs0WFlJgIHTF/8GLB69wZmtFzOSQ== =vCtb -----END PGP SIGNATURE----- --=-=-=--