From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Erik Iverson Newsgroups: gmane.emacs.help Subject: Re: Emacs, Org Mode, and Exporting to The Command Line Troubles Date: Fri, 01 Oct 2010 14:01:46 -0500 Message-ID: <4CA6301A.30801@ccbr.umn.edu> References: <4CA619A2.3020809@ccbr.umn.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285960704 8428 80.91.229.12 (1 Oct 2010 19:18:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 19:18:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Colin Grey Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 01 21:18:22 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P1l7U-0008Hm-S0 for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 21:18:22 +0200 Original-Received: from localhost ([127.0.0.1]:39706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1l7H-0004VU-Ke for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 15:17:59 -0400 Original-Received: from [140.186.70.92] (port=52169 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1l6O-0003Do-Hx for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 15:17:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1krg-0005Uq-5K for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 15:01:57 -0400 Original-Received: from walleye.ccbr.umn.edu ([128.101.116.11]:1071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1krf-0005UT-UD for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 15:01:52 -0400 Original-Received: from tadpole.ccbr.umn.edu (tadpole.ccbr.umn.edu [128.101.116.26]) by walleye.ccbr.umn.edu (8.9.3p2/8.9.3) with ESMTP id OAA19248; Fri, 1 Oct 2010 14:01:50 -0500 (CDT) Original-Received: from iron.ccbr.umn.edu (iron.ccbr.umn.edu [128.101.116.194]) by tadpole.ccbr.umn.edu (8.9.3/8.9.3) with ESMTP id OAA09929; Fri, 1 Oct 2010 14:01:47 -0500 (CDT) User-Agent: Thunderbird 2.0.0.23 (X11/20090812) In-Reply-To: <4CA619A2.3020809@ccbr.umn.edu> X-detected-operating-system: by eggs.gnu.org: NMAP syn scan (4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75061 Archived-At: See this section of the org-mode manual for example: http://orgmode.org/manual/Batch-execution.html#Batch-execution Erik Iverson wrote: > 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 ") >> (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 >> >