From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uPwmLodSjWF+JwEAgWs5BA (envelope-from ) for ; Thu, 11 Nov 2021 18:27:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mDDWKYdSjWH3BgAA1q6Kng (envelope-from ) for ; Thu, 11 Nov 2021 17:27:35 +0000 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 04176291F for ; Thu, 11 Nov 2021 18:27:35 +0100 (CET) Received: from localhost ([::1]:46162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlDrJ-00036N-CP for larch@yhetil.org; Thu, 11 Nov 2021 12:27:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlDql-00031t-PN for emacs-orgmode@gnu.org; Thu, 11 Nov 2021 12:26:59 -0500 Received: from gateway24.websitewelcome.com ([192.185.51.139]:44592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlDqi-0004Ij-Iz for emacs-orgmode@gnu.org; Thu, 11 Nov 2021 12:26:59 -0500 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway24.websitewelcome.com (Postfix) with ESMTP id E3C9730529 for ; Thu, 11 Nov 2021 11:24:07 -0600 (CST) Received: from box2035.bluehost.com ([74.220.219.237]) by cmsmtp with SMTP id lDnzm4YWAG0jLlDnzm19lk; Thu, 11 Nov 2021 11:24:07 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tsdye.online; s=default; h=Content-Type:MIME-Version:Message-ID:Date: In-reply-to:Subject:To:From:References:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XmDh8SAfyX9+lqGRw3tQAUe9DN/dTqejRoCFAMBd7Dk=; b=HJkJIu3td+DktvJPZf8OtLLX3h xj/HNDwZUmPq6zv9l50R77lkT8UnrDcFTPDby/+uf0x8+VkqcXjd21j3aM022sW7tn8p1q61iMgIW /XrbhEih7OG0j0q6aif9crsK/kYDvuAM2LsQIVHHDoaqpPTJSNw6TEw5GPBVb8wWol2bWDF/Ort2/ QQ8KKZJ2IZdEzoM6t4mQcaMp6qVO6U7nyTuAm+6OtWlqgA6FmCZDshInrela1i6Pzjofa0R1c8XKL 8DdaGt4e2HTiTGW4XlIP+Velsr5ieZr7ZBfJCGwBrkfqBEKkC9MgEqJWTdb/MfAIovhp1lVUCg02O Neesr+xA==; Received: from cpe-50-113-36-248.hawaii.res.rr.com ([50.113.36.248]:37912 helo=poto-foou.tsdye.online) by box2035.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mlDny-001b5X-U2 for emacs-orgmode@gnu.org; Thu, 11 Nov 2021 10:24:07 -0700 References: <87r1brk2j2.fsf@tsdye.online> <87mtmbk8kq.fsf@tsdye.online> User-agent: mu4e 1.2.0; emacs 27.1 From: "Thomas S. Dye" To: emacs-orgmode@gnu.org Subject: Re: execute src block during export (Re: Worg HTML export problem?) In-reply-to: Date: Thu, 11 Nov 2021 07:24:04 -1000 Message-ID: <87lf1uk3m3.fsf@tsdye.online> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box2035.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tsdye.online X-BWhitelist: no X-Source-IP: 50.113.36.248 X-Source-L: No X-Exim-ID: 1mlDny-001b5X-U2 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-50-113-36-248.hawaii.res.rr.com (poto-foou.tsdye.online) [50.113.36.248]:37912 X-Source-Auth: tsd@tsdye.online X-Email-Count: 1 X-Source-Cap: dHNkeWVvbmw7dHNkeWVvbmw7Ym94MjAzNS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Received-SPF: pass client-ip=192.185.51.139; envelope-from=tsd@tsdye.online; helo=gateway24.websitewelcome.com 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, FROM_SUSPICIOUS_NTLD=0.001, PDS_OTHER_BAD_TLD=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636651655; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=XmDh8SAfyX9+lqGRw3tQAUe9DN/dTqejRoCFAMBd7Dk=; b=RJaArarPQdZG9ZBSFhjiG9ttkdStg02ETrwn2uM+p1wIKUe+nZRJEEj74CNbTx7rfhXqQq I784SxLylPRGnPEeE6cQyU/wCL81x0vwed1AxiNotwc6OuboJYjyv1HiXx0Xq/NSClTpcC dEQYgsk5+pY20a4EvP75PVbOvkMwouAgbvhj8fa91RCZ0xRDKQmt67wccOJHqnr8H5rGvB m0C6qGMBgrA/+uhIdbJBc+/y87NhVqcl9x8Z5c63RIZ8BIlKXn+SXfD++4p3Sj2dbaJnDP eliqM7GWaDp249FGT2rifQIZr3KNNrcjxvFYS1P7BzIiX1xnSDRin1fyGrQqhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636651655; a=rsa-sha256; cv=none; b=AW8aEJMBk5I/iVDTr0cqD1RD/WrPF5klzKwtewPwcR6+Mmot9xcoSqk5vUZLkyJCOdFPfF 9EpNQ5D3onX8byHdDa/ZC8Qz/R793rCYSPguezn2eX5j8ihqwRQDljajIrRPRs48EZF2Ub L+0ehwvE8145PYWsWCNLnBJ9TjSn3fVlhMfKKJ9dc1aN15fSG211KhsvzcTjRqwD6I6dIT XvMalJKTwmGefyqprqS7EeLR1kE9CQLBvG5II8/jJOanMMEMQdBJubEcNPhKbznq6Gjq49 YjrOk6MuCqS0/OvNvJoJqPvgE6XM2+XDpIEWJ3f66sY7QvcXQWp0dDNrHAo+1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tsdye.online header.s=default header.b=HJkJIu3t; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tsdye.online header.s=default header.b=HJkJIu3t; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 04176291F X-Spam-Score: -1.83 X-Migadu-Scanner: scn1.migadu.com X-TUID: e+n7iOdY/o4Q Aloha Max, Max Nikulin writes: > On 11/11/2021 04:24, Thomas S. Dye wrote: >> Max Nikulin writes: >>> On 08/11/2021 05:46, Thomas S. Dye wrote: >>>> to fail, but AFAICT ob-doc-org.org doesn't have this >>>> affliction--it exports >>>> locally. > > Have you tried to export it from "emacs -Q -L > /path/to/org-mode/lisp"? > I think, you just have "org" in customized > "org-babel-load-languages". > >>>> I've likely made some other error, but I don't have clue what >>>> it might be. >>>> I don't know how to debug this. Can someone help, please? >>> >>> https://builds.sr.ht/~bzg/job/623225 >>> >>> [exporting] org-contrib/babel/languages/ob-doc-org.org >>> No org-babel-execute function for org! >>> >>> However I do not see explicit load/require for particular >>> language in sibling >>> files. I expected something like >>> >>> #+begin_src emacs-lisp :exports none >>> (require 'ob-org) >>> #+end_src >> Thanks for looking into this. >> Is the problem something I can fix in ob-doc-org.org? Or, does >> it have >> to do with the configuration at sr.ht? > > All settings are in .build.yaml and publish.sh (lisp) file. > > Sorry, I have missed the following code in your file > > #+begin_src emacs-lisp > (org-babel-do-load-languages > 'org-babel-load-languages > '((org . t))) > #+end_src > > I am unsure whether it should work in this form or it worked > earlier, but on > main branch it is not executed during export. If I change first > line to the > following, the block is executed during export: > > #+begin_src emacs-lisp :results value none :exports results > > My minimal example: > > Test > > #+begin_src emacs-lisp :results value none :exports results > (org-babel-do-load-languages > 'org-babel-load-languages > '((org . t))) > #+end_src > > #+name: org-hello > #+begin_src org :var hello="World" > Hello, $hello! > #+end_src > > #+begin_src elisp :var x=org-hello[](hello="Org") :exports both > (print x) > #+end_src Thanks! The original problem is likely due to the default header arguments in ob-org.el, which are unusual. If I export both, then all is well. #+begin_src emacs-lisp :results value none :exports both (org-babel-do-load-languages 'org-babel-load-languages '((org . t))) #+end_src All the best, Tom -- Thomas S. Dye https://tsdye.online/tsdye