From: Colin Grey <cgpgrey@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Emacs, Org Mode, and Exporting to The Command Line Troubles
Date: Fri, 1 Oct 2010 08:49:34 +0100 [thread overview]
Message-ID: <AANLkTikaiiSwwAoPZMa3fE+yy43PNpZgOkfY7sG+stni@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 837 bytes --]
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") (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
Thank you in advance for any help,
Colin Grey
www.CGPGrey.com
www.ProductivePorcupine.com
[-- Attachment #2: Type: text/html, Size: 1211 bytes --]
next reply other threads:[~2010-10-01 7:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-01 7:49 Colin Grey [this message]
2010-10-01 17:25 ` Emacs, Org Mode, and Exporting to The Command Line Troubles Erik Iverson
2010-10-01 19:01 ` Erik Iverson
2010-10-01 18:57 ` Stefan Vollmar
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikaiiSwwAoPZMa3fE+yy43PNpZgOkfY7sG+stni@mail.gmail.com \
--to=cgpgrey@gmail.com \
--cc=help-gnu-emacs@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.
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).