From mboxrd@z Thu Jan 1 00:00:00 1970 From: Skip Collins Subject: odt export version conflict on emacs for mac os x Date: Sun, 11 Aug 2013 09:50:54 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8W2r-0004Ng-1u for emacs-orgmode@gnu.org; Sun, 11 Aug 2013 09:50:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8W2p-0006sf-KO for emacs-orgmode@gnu.org; Sun, 11 Aug 2013 09:50:56 -0400 Received: from mail-ob0-x234.google.com ([2607:f8b0:4003:c01::234]:57599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8W2p-0006sR-Ex for emacs-orgmode@gnu.org; Sun, 11 Aug 2013 09:50:55 -0400 Received: by mail-ob0-f180.google.com with SMTP id up14so491572obb.25 for ; Sun, 11 Aug 2013 06:50:54 -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 The version of org that comes with my stock Emacs on OS X (from emacsformacosx.org) seems to conflict with my git installation of org. This is particularly evident when trying to use ODT export. Emacs.app is located in the usual /Applications folder. The newer org, which I intend to completely supplant the version that comes with Emacs, was installed with prefix /usr/local/share using the 'make up2' command. My minimal init file is: (setq load-path (cons "/usr/local/share/emacs/site-lisp/org" load-path)) I start Emacs from the command line: /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l ~/.emacs.d/minimalinit.el ~/test.org Doing M-x org-version yields: Org-mode version 8.0.7 (release_8.0.7-369-g9154c7 @ /usr/local/share/emacs/site-lisp/org/) I immediately browse the ODT customization options showing that all variables are prefixed with org-export-odt-. In order to be able to select ODT in the export dispatcher, I have to add odt to org-export-backends. Curiously, it shows that it is changed outside of customize before I make any changes. So I have to unselect odt and reselect it and then Save for Current Session for ODT export to be enabled. When I finally use the dispatcher to generate an ODT file, the following happens: 1) an odt file is generated (good) 2) These Emacs messages appear (bad): Debug (ox-odt): Searching for OpenDocument styles files... Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times] Debug (ox-odt): Trying /usr/local/share/emacs/etc/styles/... Debug (ox-odt): Trying /usr/local/share/emacs/site-lisp/org/etc/styles/... Debug (ox-odt): Trying /Applications/Emacs.app/Contents/Resources/etc/org/... Debug (ox-odt): Using styles under /Applications/Emacs.app/Contents/Resources/etc/org/ Debug (ox-odt): Searching for OpenDocument schema files... Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times] Debug (ox-odt): No OpenDocument schema files installed 3) I find that there are new variables with the org-odt- prefix. Many of them seem like duplicates of the org-export-odt set (bad). It appears that the old version of ODT export (the one bundled inside Emacs.app) is getting loaded and ox-odt is looking in the wrong directories for schemas and styles. Explicitly setting org-export-backends, org-export-odt-schema-dir, and org-export-odt-styles-file in minimalinit.el has no effect. These variables seem to be superseded when ox-odt is invoked. I started digging into this when I noticed some odd behavior while using ODT export. I think I am stuck using the older, buggier ox-odt and my setup is mixing two versions of org. I have installed the latest release of Emacs for Mac OS X: GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org