From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitri Makarov Subject: htmlize doesn't work in --batch mode Date: Tue, 11 Sep 2012 15:16:03 +0200 Message-ID: <0187D5B9-AF58-454C-814A-C2DC744E6063@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBQK3-0003yT-EJ for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 09:16:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBQK1-00038s-9D for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 09:16:11 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:38678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBQK1-00038a-2W for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 09:16:09 -0400 Received: by eaaf11 with SMTP id f11so310408eaa.0 for ; Tue, 11 Sep 2012 06:16:07 -0700 (PDT) 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 Hi all, I'm having a problem with offline exports. If I run emacs in --batch mode like this emacs -batch -l ~/.emacs.d/init.el -eval '(org-publish-all)' it doesn't seem to load the packages installed by the ELPA package = manager. In particular it doesn't load htmlize package and also loads the bundled = org version 7.8.11 whereas I have newer version 7.9.1 installed in packages. Also, it seems for the new version of org to take over the bundled org package when I run emacs in normal window mode I have to invoke (require 'org-install) from after-init-hook like this (add-hook 'after-init-hook (lambda () (load-file "~/.emacs.d/org.el"))) org.el among other things includes (require 'org-install) If I place (require 'org-install) directly in my init.el, emacs loads the org package bundled with the emacs installation, not the one installed by the package manager, probably because package-initialize is evaluated after init.el has been loaded. Is this normal? Did anyone have the same problem? My emacs version is GNU Emacs 24.2.1. I hope my questions make sense, as I don't really have much experience = with emacs package management, and it seems difficult to describe the = problem clearly. I apologize for this is not being an org-mode question, but since many = org users use htmlize, I figure some of them probably want to export their org = files in batch mode, and perhaps they've faced the same issues with packages in batch mode that I'm having. Regards, Dmitri