[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Location of OpenDocument style files should be configurable
From: |
Jambunathan K |
Subject: |
Re: [O] Location of OpenDocument style files should be configurable |
Date: |
Thu, 29 Dec 2011 21:36:18 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (windows-nt) |
Hello Ulrich
> Hi,
> In Gentoo we have an issue with the location of the OpenDocument style
> files, reported to us in bug 396269 [1].
Makefile in org-7.8.02 is buggy and breaks the ODT exporter. Bastien, is
likely to re-publish a version of org-7.8.x soon.
Lately, there has been some confusion around how and where OpenDocument
style files go. There have also been multiple bug reports surrounding
broken export.
> When org-mode is installed as a separate Gentoo package, its lisp
> files are installed in /usr/share/emacs/site-lisp/org-mode/.
> According to our policy, non-lisp files would go to
> /usr/share/emacs/etc/org-mode/. We would pass this as the "etcdir"
> parameter to "make install", so the odt style files would be installed
> in stylesdir = /usr/share/emacs/etc/org-mode/styles/.
Org-7.8.x has been accepted in to Emacs-24.1 [1]. I have proposed that
the style files go as "c:/Program Files/emacs-24.0.92/etc/org/*.xml"
[2]. Note that under stock Emacs, the org package go under "org" subdir.
(locate-library "org.elc") => "c:/Program Files/emacs-24.0.92/lisp/org/org.elc"
So, will it be acceptable, if org-odt.el searches for styles file under
<wherever-org-odt.elc-is>/../../etc/org/. (For vanilla Emacs, this is
same as `data-directory'/etc/org. See C-h v data-directory)
This way the package structure under gentoo will parallel the structure
under stock Emacs.
I am copying Sebastien (the debian maintainer) and Dave (who fixed the
Makefile subsequent to 7.8.02) release. If there is consensus, I will
fix org-odt.el and also Makefile.
Side Note: I am little bit hesitant to make org-odt-styles-dir a
defcustom. Already there are defcustoms for org-export-odt-styles-file
and org-export-odt-content-template-file and making org-odt-styles-dir
will add needless confusion to the users.
Jambunathan K.
Footnotes:
[1] http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00607.html
[2] http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00571.html
> Now org-odt.el currently defines org-odt-styles-dir in a defconst,
> and it searches only in ../etc/styles/, ./etc/styles/, and ./etc/org/
> relative to lispdir. Obviously it cannot find the files in the Gentoo
> location.
>
> Now my question, could the defconst be changed to a defvar, so that we
> can specify the location in our site-start file? Or, preferably, could
> the etcdir specified in "make" command be honoured in the lisp code?
>
> Ulrich
>
> [1] <https://bugs.gentoo.org/show_bug.cgi?id=396269>
>
>
--