From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AH5iATgU7l8lGgAA0tVLHw (envelope-from ) for ; Thu, 31 Dec 2020 18:11:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +GuuODcU7l9ZcQAAbx9fmQ (envelope-from ) for ; Thu, 31 Dec 2020 18:11:03 +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 5D8E99403D3 for ; Thu, 31 Dec 2020 18:11:03 +0000 (UTC) Received: from localhost ([::1]:35164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kv2Pe-0001Wv-93 for larch@yhetil.org; Thu, 31 Dec 2020 13:11:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kv2On-0001Vw-K3 for emacs-orgmode@gnu.org; Thu, 31 Dec 2020 13:10:11 -0500 Received: from hiwela.pair.com ([2607:f440::d144:5c9]:65096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kv2Oh-0000WJ-Jr for emacs-orgmode@gnu.org; Thu, 31 Dec 2020 13:10:05 -0500 Received: from hiwela.pair.com (localhost [127.0.0.1]) by hiwela.pair.com (Postfix) with ESMTP id A396A980639 for ; Thu, 31 Dec 2020 13:07:35 -0500 (EST) Received: from minshall-entroware-apollo.cliq.com (unknown [95.14.73.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hiwela.pair.com (Postfix) with ESMTPSA id 6F3EB8F084E for ; Thu, 31 Dec 2020 13:07:35 -0500 (EST) Received: from apollo2.minshall.org (localhost [IPv6:::1]) by minshall-entroware-apollo.cliq.com (Postfix) with ESMTP id CF3CE62F7E for ; Thu, 31 Dec 2020 21:07:32 +0300 (+03) From: Greg Minshall To: emacs-orgmode@gnu.org Subject: batch export: org-babel-execute:shell undefined? X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1137396.1609438052.1@apollo2.minshall.org> Date: Thu, 31 Dec 2020 21:07:32 +0300 Message-ID: <1137397.1609438052@apollo2.minshall.org> Received-SPF: softfail client-ip=2607:f440::d144:5c9; envelope-from=minshall@umich.edu; helo=hiwela.pair.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 X-Migadu-Spam-Score: -1.23 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=umich.edu (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: 5D8E99403D3 X-Spam-Score: -1.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: z4uWLAJrKd+R hi. i am doing an export to HTML using "--batch --eval" to invoke emacs. i find that my shell source blocks are *not* being executed unless i use (custom-set-variables), rather than (setq) or (let), to initialize 'org-babel-load-languages. to wit... the following code works: ---- (progn (custom-set-variables '(org-babel-load-languages '((shell . t))) ) (let ((org-confirm-babel-evaluate nil)) (org-html-export-to-html)) (if noninteractive (kill-emacs))) ---- but, with (setq), this does *not* work: ---- (progn (setq org-babel-load-languages '((shell . t)) ) (let ((org-confirm-babel-evaluate nil)) (org-html-export-to-html)) (if noninteractive (kill-emacs))) ---- i find that in the latter case, in (org-babel-exp-results), (org-babel-execute:shell) is not defined. my emacs command line looks like this: ---- emacs -L `find ~/.emacs.d/ -name "org-[0-9]*" -type d` -l org -L `find ~/.emacs.d/ -name "htmlize*" -type d` -l htmlize --batch ./public/index.org --eval " ---- followed by one or the other above code fragments. does this ring any bells? or, any obvious stupidity on my part? cheers, happy 2021, hopefully. Greg