From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulrich Mueller Subject: Location of OpenDocument style files should be configurable Date: Thu, 29 Dec 2011 12:24:26 +0100 Message-ID: <20220.19946.360761.625682@a1i15.kph.uni-mainz.de> 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]:60714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgE63-0002Vp-Fk for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 06:24:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgE62-0002Mc-0O for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 06:24:31 -0500 Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:49096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgE61-0002MF-Me for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 06:24:29 -0500 Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1iwww1.kph.uni-mainz.de (8.14.4/8.13.4) with ESMTP id pBTBOQCQ001080 for ; Thu, 29 Dec 2011 12:24:27 +0100 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, In Gentoo we have an issue with the location of the OpenDocument style files, reported to us in bug 396269 [1]. 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/. 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]