unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Erik Iverson <eriki@ccbr.umn.edu>
To: Colin Grey <cgpgrey@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs, Org Mode, and Exporting to The Command Line Troubles
Date: Fri, 01 Oct 2010 12:25:54 -0500	[thread overview]
Message-ID: <4CA619A2.3020809@ccbr.umn.edu> (raw)
In-Reply-To: <AANLkTikaiiSwwAoPZMa3fE+yy43PNpZgOkfY7sG+stni@mail.gmail.com>

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	other threads:[~2010-10-01 17:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01  7:49 Emacs, Org Mode, and Exporting to The Command Line Troubles Colin Grey
2010-10-01 17:25 ` Erik Iverson [this message]
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=4CA619A2.3020809@ccbr.umn.edu \
    --to=eriki@ccbr.umn.edu \
    --cc=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).