help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs, Org Mode, and Exporting to The Command Line Troubles


From: Erik Iverson
Subject: Re: Emacs, Org Mode, and Exporting to The Command Line Troubles
Date: Fri, 01 Oct 2010 12:25:54 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090812)

Colin,

If you don't receive an answer here, you might want to follow-up on
the emacs-orgmode mailing list.  You may have to load orgmode in your
progn before using its functions?

--Erik

Colin Grey wrote:
Hello,

I'm trying to write a shell script that will automatically change a bunch of my org-mode files into HTML files. But am running into some problems. The structure, as best I understand it, should like something like this:

emacs -batch -eval '(progn (find-file "test.org.txt") (org-export-as-html "test.html"))'

However, when I run that, it gives the output:

Loading 00fink-vars...
Exporting...
Exporting...
Exporting...
Wrong type argument: stringp, nil


Oddly, I've noticed that if I don't use my custom extension (.org.txt) but just use .org like so:

emacs -batch -eval '(progn (find-file "test.org <http://test.org>") (org-export-as-html "test.html"))'

It will run, but will always spit out a blank HTML file, no matter the contents of test.org <http://test.org>

Thank you in advance for any help,

Colin Grey

www.CGPGrey.com <http://www.CGPGrey.com>
www.ProductivePorcupine.com <http://www.ProductivePorcupine.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]