From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Problem with ditaa when doing export from command line Date: Fri, 10 Jun 2011 09:52:03 +0200 Message-ID: <44422493-1A8F-43B6-8051-945C794DFA57@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUwVm-0000vU-H7 for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 03:52:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUwVl-0006PP-Dg for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 03:52:10 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:33102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUwVl-0006P4-6E for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 03:52:09 -0400 Received: by ewy9 with SMTP id 9so946717ewy.0 for ; Fri, 10 Jun 2011 00:52:07 -0700 (PDT) In-Reply-To: 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: emacs-orgmode@gnu.org Hi Herbert, On Jun 10, 2011, at 9:33 AM, Herbert Sitz wrote: > I'm trying to do an export by calling emacs from the command line like = so: >=20 > emacs -batch --visit=3Dmyfilename --funcall org-export-as-html maybe you need to do emacs -batch --visit=3Dmyfilename --eval '(setq = org-confirm-babel-evaluate nil)' --funcall org-export-as-html Also, note that when you run emacs with -batch, you init file is *not* = evaluated, so it does not help to have settings there...... Any settings you need = must be on the command line, of in a separate file that you will load with emacs -batch -l settings.el ......... For some background info on the prompt about evaluation, check out = http://orgmode.org/manual/Code-evaluation-security.html#Code-evaluation-se= curity - Carsten P.S. How is the VIM port coming along? >=20 > The export works fine except the ditaa png from ditaa source block = doesn't get > created. >=20 > I've run the export from within emacs and the ditaa png does get = created. The > export also stops to present me with dialog asking whether I want to = process the > ditaa code, to which I respond Yes. I don't get any dialog when I do = the export > from the command line. >=20 > Is there some way to get the ditaa code working when I do the export = from the > command line. >=20 > I'm running this on Windows7 if that makes any difference. >=20 > Thanks, >=20 > Herb >=20 >=20 - Carsten