From: Herbert Sitz <hsitz@nwlink.com>
To: emacs-orgmode@gnu.org
Subject: Re: Problem with ditaa when doing export from command line
Date: Fri, 10 Jun 2011 20:54:39 +0000 (UTC) [thread overview]
Message-ID: <loom.20110610T224516-730@post.gmane.org> (raw)
In-Reply-To: 8619.1307734966@alphaville.americas.hpqcorp.net
Nick Dokos <nicholas.dokos <at> hp.com> writes:
>That's 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 .
You are correct, sir! Thanks, it is indeed a quoting problem.
>
> 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.
Okay, here's what seems to work on Windoze. Don't laugh:
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
There is actually some reason to the rhyme, which is explained here:
http://blogs.msdn.com/b/twistylittlepassagesallalike/archive/2011/04/23/everyone-quotes-arguments-the-wrong-way.aspx
Thanks again.
-- Herb
prev parent reply other threads:[~2011-06-10 20:54 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
2011-06-10 20:54 ` Herbert Sitz [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20110610T224516-730@post.gmane.org \
--to=hsitz@nwlink.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.