From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sLT2EkEUjWEeiQAAgWs5BA (envelope-from ) for ; Thu, 11 Nov 2021 14:01:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yM6MDkEUjWGmWQAAbx9fmQ (envelope-from ) for ; Thu, 11 Nov 2021 13:01:53 +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 DDE3015FB4 for ; Thu, 11 Nov 2021 14:01:52 +0100 (CET) Received: from localhost ([::1]:50430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml9iB-00062d-Pe for larch@yhetil.org; Thu, 11 Nov 2021 08:01:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml9gv-00060f-PM for emacs-orgmode@gnu.org; Thu, 11 Nov 2021 08:00:33 -0500 Received: from ciao.gmane.io ([116.202.254.214]:32782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml9gt-0003dd-V7 for emacs-orgmode@gnu.org; Thu, 11 Nov 2021 08:00:33 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ml9gp-0005Pn-Da for emacs-orgmode@gnu.org; Thu, 11 Nov 2021 14:00:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: execute src block during export (Re: Worg HTML export problem?) Date: Thu, 11 Nov 2021 20:00:18 +0700 Message-ID: References: <87r1brk2j2.fsf@tsdye.online> <87mtmbk8kq.fsf@tsdye.online> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 In-Reply-To: <87mtmbk8kq.fsf@tsdye.online> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1636635712; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=GpjIWh/bCI2gmbXe1UHZTpmGMr8SLlpczNgt+zDNTuQ=; b=qTR/bfr26ENX3kLgKAxCIvmHeBtoGXPgEoWeIKhRm4N5VCfE0uTGlDo6UmVfN3MmOFxwsp V18U6u6orSZtTaEvwuWftB/+JSFOQlMG/B68SoDZyEhzpiwesV7w6zEiGJjfjYrwC01BRO /nC5ozDAIKpC1uaQFz/Jr568snosXeV5sJDGSJFEGrGZvy8o1mi1N08gWz6sQr1NvdNiIX AJjI4FjkOd/CwfpgwvV9IoIwf2Qr9iVPCiMlvmWLgRlMntEpn9gSvASnIr1x4SwJ464JA5 o2LQnSSQ6vwrZPU8eW9RzLe+umxOOT2/FEn/Je4iYXzHGkk8FdDYWN9PMOx+Ng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636635712; a=rsa-sha256; cv=none; b=kDnzxvEh5oVLkU/knD997BmnEU+cENYyY2QVxoUtXBPNrEuQaEoeWHjYAN9aEdd+FbAD6w nAt6eAQQgsJ5QmoEo8Zqul4wHbSTfbUesoRKi7B+ST9U6Z+1bvfx/9OJy0tpMZrrzs/WvP I/uFHx4/3fS7BxB43fM+tBf6AIh918eH3xoVh34kMpV+DqP0KyzJSQ+BgEynkggK1OlC30 LscqAiTRO8bxiSPlDJDhkk+BS/hOwVyyaC5FZPtpR82iVqu1D73DFtn54Y90GHglOkVKP7 taUquIVv7hbkJQvAxK06fHWy71tsoDC/m9jZgJ44ETzYO1bod86U2wo9YEFQoA== 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.23 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: DDE3015FB4 X-Spam-Score: -2.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: HztNw6OUPazl 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