From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Colin Grey Newsgroups: gmane.emacs.help Subject: Emacs, Org Mode, and Exporting to The Command Line Troubles Date: Fri, 1 Oct 2010 08:49:34 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00163630fa2b8f27e10491896f04 X-Trace: dough.gmane.org 1285949055 16467 80.91.229.12 (1 Oct 2010 16:04:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 16:04:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 01 18:04:12 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 1P1i5g-0002al-Jk for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 18:04:08 +0200 Original-Received: from localhost ([127.0.0.1]:49945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1i5d-00075q-Pu for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 12:04:05 -0400 Original-Received: from [140.186.70.92] (port=46737 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1aND-0002Zx-43 for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 03:49:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1aNB-0001yI-VI for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 03:49:43 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:52622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1aNB-0001yD-Q5 for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 03:49:41 -0400 Original-Received: by qyk33 with SMTP id 33so627235qyk.0 for ; Fri, 01 Oct 2010 00:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=pckUyl5qXkirqHLMza3Lws4HGtSfhrUjEjM/wOINbKY=; b=mnQyJWzzwr7M4VF98jYkZVuPpZk68LIqXiqnDTEUBB7ViE3b+igUiUgdcyjqEqlOsL nQcN0Y1Y+ajiNTMlH232Q3HdkQA0L/RGdu8uIX/vTP4FlJ1D+yX7XhyHxytpOhLp/7f9 nnSj0r06LX1anD8kner2492ZlcFJXWEPBXRnY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=razo2iVtp46ZmZaakMevYBeQrY4sevTUbgfURyURgupLxJWN8/cFhqfzQYDKffV/xG RLENZtGI6zKNxZc700XrPtrAG6NBsqRccXsOoJBuyEkqzE61ukDrgbjYlXUAWaI/2LLA RYeGG8ZnkVjRGVAkULPM82NOUfT0XySLaRHmA= Original-Received: by 10.229.229.83 with SMTP id jh19mr3624514qcb.76.1285919375037; Fri, 01 Oct 2010 00:49:35 -0700 (PDT) Original-Received: by 10.229.21.200 with HTTP; Fri, 1 Oct 2010 00:49:34 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 01 Oct 2010 12:02:25 -0400 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:75059 Archived-At: --00163630fa2b8f27e10491896f04 Content-Type: text/plain; charset=ISO-8859-1 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 --00163630fa2b8f27e10491896f04 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

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

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

However, when I run th= at, 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 (fin= d-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 ad= vance for any help,

Colin Grey


--00163630fa2b8f27e10491896f04--