From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Batch export to html Date: Thu, 08 Dec 2011 20:49:37 +0100 Message-ID: <87iplqg7xq.fsf@Rainer.invalid> References: <20111207111621.GA9897@panahar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjya-0005kN-1M for emacs-orgmode@gnu.org; Thu, 08 Dec 2011 14:49:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYjyZ-0007q1-2I for emacs-orgmode@gnu.org; Thu, 08 Dec 2011 14:49:52 -0500 Received: from lo.gmane.org ([80.91.229.12]:53255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjyY-0007pv-Pq for emacs-orgmode@gnu.org; Thu, 08 Dec 2011 14:49:50 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RYjyW-0000HH-HF for emacs-orgmode@gnu.org; Thu, 08 Dec 2011 20:49:48 +0100 Received: from p57aaab42.dip.t-dialin.net ([87.170.171.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Dec 2011 20:49:48 +0100 Received: from Stromeko by p57aaab42.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Dec 2011 20:49:48 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Vikas Rawal writes: > I would like to export an org file to html using a batch command. This > is the command I tried. > > emacs --batch --load=$HOME/lisp/org-7.01/lisp/org.el --eval "(setq > org-export-headline-levels 1)" --visit=$HOME/file.org --funcall org-export-as-html-batch That won't work. At least you will need to load org-install.el, which conatains all the autoload stuff that org-mode needs. The export will likely require some more customization of org-mode variables, so you'll probably want to load a startup file that includes those customizations and then a (require 'org-install). > But I get an error which says: > > Symbol's function definition is void: org-in-block-p > > Could anyone explain what this could mean? It means the function isn't already defined and emacs doesn't know any way to find that definition. Which is exactly what you prevented by not loading org-install. HTH, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada