From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea crotti Subject: Re: auto export via git hook Date: Fri, 04 Sep 2009 13:28:16 +0200 Message-ID: References: <29003.1251986696@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjWyO-0004XT-Ph for emacs-orgmode@gnu.org; Fri, 04 Sep 2009 07:28:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjWyC-0004Oi-Ct for emacs-orgmode@gnu.org; Fri, 04 Sep 2009 07:28:48 -0400 Received: from [199.232.76.173] (port=56819 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjWyC-0004Oe-4B for emacs-orgmode@gnu.org; Fri, 04 Sep 2009 07:28:44 -0400 Received: from lo.gmane.org ([80.91.229.12]:45352) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MjWyB-0003dO-Kh for emacs-orgmode@gnu.org; Fri, 04 Sep 2009 07:28:43 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MjWy7-0004eg-Sh for emacs-orgmode@gnu.org; Fri, 04 Sep 2009 13:28:39 +0200 Received: from host-84-223-41-249.cust-adsl.tiscali.it ([84.223.41.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Sep 2009 13:28:39 +0200 Received: from andrea.crotti.0 by host-84-223-41-249.cust-adsl.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Sep 2009 13:28:39 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos writes: > andrea crotti wrote: > See the following thread in the mail list archive: > > http://thread.gmane.org/gmane.emacs.orgmode/17059 > > Basically, --batch implies -q, so you have to do any initialization > (including setting the load-path) as part of the invocation. > Ok thanks I understood the problem but I still didn't solve it, now with this emacs --batch \ --load=$HOME/.emacs.d/init.el \ --load=$HOME/.emacs.d/org-mode/org.elc \ --eval "(setq org-export-headline-levels 2)" \ --visit=README.org --funcall org-export-as-html-batch I get: .git/hooks/pre-commit.bak Invalid function: charset-iso-final-char which is "charset-iso-final-char is a compiled Lisp function in `mule.el'." But I also suspect that init.el is not loaded, it's too fast... any help?