emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Greg Minshall <minshall@umich.edu>
To: emacs-orgmode@gnu.org
Subject: batch export: org-babel-execute:shell undefined?
Date: Thu, 31 Dec 2020 21:07:32 +0300	[thread overview]
Message-ID: <1137397.1609438052@apollo2.minshall.org> (raw)

hi.  i am doing an export to HTML using "--batch --eval" to invoke

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:
						'((shell . t)))
				(let ((org-confirm-babel-evaluate nil))
				(if noninteractive

but, with (setq), this does *not* work:
						'((shell . t))
				(let ((org-confirm-babel-evaluate nil))
				(if noninteractive

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:
        -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.


             reply	other threads:[~2020-12-31 18:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-31 18:07 Greg Minshall [this message]
2021-01-01  4:51 ` batch export: org-babel-execute:shell undefined? Greg Minshall
2021-01-01  5:32   ` batch export: org-babel-execute:shell undefined? (SOLVED) Greg Minshall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1137397.1609438052@apollo2.minshall.org \
    --to=minshall@umich.edu \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).