From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem with ditaa when doing export from command line Date: Fri, 10 Jun 2011 15:42:46 -0400 Message-ID: <8619.1307734966@alphaville.americas.hpqcorp.net> References: <44422493-1A8F-43B6-8051-945C794DFA57@gmail.com> <6075.1307722907@alphaville.americas.hpqcorp.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV7bW-0008Nk-8y for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 15:42:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QV7bV-0001iw-3l for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 15:42:50 -0400 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:37808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV7bU-0001iq-T9 for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 15:42:49 -0400 In-Reply-To: Message from Herbert Sitz of "Fri, 10 Jun 2011 19:18:16 -0000." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Herbert Sitz Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Herbert Sitz wrote: > Nick Dokos 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