emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Herbert Sitz <hsitz@nwlink.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Problem with ditaa when doing export from command line
Date: Fri, 10 Jun 2011 15:42:46 -0400	[thread overview]
Message-ID: <8619.1307734966@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Herbert Sitz <hsitz@nwlink.com> of "Fri, 10 Jun 2011 19:18:16 -0000." <loom.20110610T211425-332@post.gmane.org>

Herbert Sitz <hsitz@nwlink.com> wrote:

> Nick Dokos <nicholas.dokos <at> hp.com> writes:
> > Works fine for me here, so there is probably a syntax error in the lisp
> > file(s) you load or the lisp code you eval - try using a minimal setup
> > file as shown below:
> > 
> > 
> > I do
> > 
> >    emacs -batch --visit=foo.org  -l export.el --funcall org-export-as-html
> > 
> > with export.el containing the following:
> > 
> > --8<---------------cut here---------------start------------->8---
> >  setq org-confirm-babel-evaluate nil)
> >  require 'ob-ditaa)
> >  setq org-babel-temporary-directory "tmp")
> >setq org-ditaa-jar-path "/home/nick/elisp/org-mode/contrib/scripts/ditaa.jar")
> > --8<---------------cut here---------------end--------------->8---
> > 
> 
> Nick -- Thanks very much, I did get it working with your help.  
> 
> However I could not get it to work if I used an --eval in the 
> command line, had to move the assignment into setting.el to get it to work.  
> Did you get it to work with an --eval statement in the command line?
> 

That's probably a quoting problem (you are on Windoze, right?) The command line
on Windoze sucks raw eggs (well, not just the command line, but I'm biased :-).

On Linux, I used two kinds of quotes in order to protect the vulnerable characters
inside each lisp sexp (you could also use backslashes strategically):

   emacs -batch --visit foo.org --eval '(setq org-confirm-babel-evaluate nil)'\
                                --eval "(require 'ob-ditaa)"\
                                --eval '(setq org-babel-temporary-directory "tmp")'\
                                --eval '(setq org-ditaa-jar-path "/home/nick/elisp/org-mode/contrib/scripts/ditaa.jar")'\
                                --funcall org-export-as-html

Inconvenient, but it works.

Nick

  reply	other threads:[~2011-06-10 19:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-10  7:33 Problem with ditaa when doing export from command line Herbert Sitz
2011-06-10  7:52 ` Carsten Dominik
2011-06-10 15:47   ` Herbert Sitz
2011-06-10 15:59     ` Herbert Sitz
2011-06-10 16:21     ` Nick Dokos
2011-06-10 19:18       ` Herbert Sitz
2011-06-10 19:42         ` Nick Dokos [this message]
2011-06-10 20:54           ` Herbert Sitz

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=8619.1307734966@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=hsitz@nwlink.com \
    /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).