From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulrich Mueller Subject: Re: Location of OpenDocument style files should be configurable Date: Thu, 29 Dec 2011 17:56:47 +0100 Message-ID: <20220.39887.631435.743160@a1i15.kph.uni-mainz.de> References: <20220.19946.360761.625682@a1i15.kph.uni-mainz.de> <8162gzpdl1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgJI6-0006uG-JE for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 11:57:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgJI0-0006Kj-7b for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 11:57:18 -0500 Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:40800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgJHz-0006KB-Up for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 11:57:12 -0500 In-Reply-To: <8162gzpdl1.fsf@gmail.com> 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: Jambunathan K Cc: bzg@altern.org, seb@debian.org, emacs-orgmode@gnu.org, davemarq@us.ibm.com >>>>> On Thu, 29 Dec 2011, Jambunathan K wrote: >> 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 /../../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. Gentoo policy is to install auxiliary (non-lisp) files under /usr/share/emacs/etc/${PN}/ where PN is the package name. The Gentoo package is named "org-mode" not "org". And I guess you'll not be able to catch all possible cases by adding even more paths like ../../etc/org/ to the heuristics of your search. Such a solution looks like a dead end to me. > 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. I wasn't asking for a defcustom, a defvar for org-odt-styles-dir would be sufficient and wouldn't add confusion for users. This way, we could simply setq the variable in our site-init file. On the long term, another solution would be to collect all Makefile-configurable paths (lispdir, stylesdir, etc.) in a file org-paths.el that would be auto-generated by make. Ulrich