emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Skip Collins <skip.collins@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: odt export version conflict on emacs for mac os x
Date: Mon, 19 Aug 2013 16:09:06 -0400	[thread overview]
Message-ID: <CABUh-7747DnfFovPdrPmhVtnt-vi2-zHuWY5+wJcT40hT2Tmzg@mail.gmail.com> (raw)
In-Reply-To: <CABUh-75dgCvU+nWa0sbVf8Ct=GH8G-W=mNZ_0hJ2v_Wj9Ew1uw@mail.gmail.com>

I think this is a bug. Can someone confirm? After I do an ODT export,
many ox-odt variables are duplicated with old variable names:
    | [-]-\ Group Org Export ODT
    |  |  |--- Option Org Odt Prettify Xml
    |  |  |--- Option Org Odt Schema Dir
    |  |  |--- Option Org Odt Content Template File
    |  |  |--- Option Org Odt Styles File
    |  |  |--- Option Org Odt Display Outline Level
    |  |  |--- Option Org Odt Convert Processes
    |  |  |--- Option Org Odt Convert Process
    |  |  |--- Option Org Odt Convert Capabilities
    |  |  |--- Option Org Odt Preferred Output Format
    |  |  |--- Option Org Odt Format Drawer Function
    |  |  |--- Option Org Odt Format Headline Function
    |  |  |--- Option Org Odt Format Inlinetask Function
    |  |  |--- Option Org Odt With Latex
    |  |  |--- Option Org Odt Inline Formula Rules
    |  |  |--- Option Org Odt Inline Image Rules
    |  |  |--- Option Org Odt Pixels Per Inch
    |  |  |--- Option Org Odt Create Custom Styles For Srcblocks
    |  |  |--- Option Org Odt Fontify Srcblocks
    |  |  |--- Option Org Odt Table Styles
    |  |  |--- Option Org Odt Use Date Fields
    |  |  |--- Option Org Export Odt Schema Dir
    |  |  |--- Option Org Export Odt Content Template File
    |  |  |--- Option Org Export Odt Styles File
    |  |  |--- Option Org Export Odt Inline Image Extensions
    |  |  |--- Option Org Export Odt Pixels Per Inch
    |  |  |--- Option Org Export Odt Create Custom Styles For Srcblocks
    |  |  |--- Option Org Export Odt Preferred Output Format
    |  |  |--- Option Org Export Odt Table Styles
    |  |  |--- Option Org Export Odt Fontify Srcblocks
    |  |  |--- Option Org Export Odt Category Strings
    |  |  |--- Option Org Export Odt Prettify Xml
    |  |  |--- Option Org Export Odt Convert Processes
    |  |  |--- Option Org Export Odt Convert Process
    |  |  `--- Option Org Export Odt Convert Capabilities

This is apparently caused by interference from an old version of
org-mode that is bundled inside my OS X Emacs.app. How can I
completely disable the old version?


-- 
skip collins
240 687 7802


On Sun, Aug 11, 2013 at 9:50 AM, Skip Collins <skip.collins@gmail.com> wrote:
> 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

  reply	other threads:[~2013-08-19 20:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-11 13:50 odt export version conflict on emacs for mac os x Skip Collins
2013-08-19 20:09 ` Skip Collins [this message]
2013-08-20  7:53   ` Christian Moe
2013-08-20 17:05     ` Skip Collins
2013-08-29  5:05   ` Jambunathan K
2013-08-29 18:25     ` Skip Collins
2013-08-31  6:04       ` Carsten Dominik
2013-08-31  6:28         ` Jambunathan K
2013-08-31  7:26         ` Achim Gratz
2013-08-31  8:47           ` Christian Moe
2013-08-31 16:53             ` Achim Gratz
2013-08-31  8:54           ` Carsten Dominik
2013-08-31 10:16             ` Jambunathan K
2013-08-29  4:55 ` Jambunathan K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABUh-7747DnfFovPdrPmhVtnt-vi2-zHuWY5+wJcT40hT2Tmzg@mail.gmail.com \
    --to=skip.collins@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).