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


             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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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 \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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