From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Location of OpenDocument style files should be configurable Date: Thu, 29 Dec 2011 17:56:01 +0100 Message-ID: References: <20220.19946.360761.625682@a1i15.kph.uni-mainz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgJH5-000695-61 for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 11:56:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgJH3-0006EC-7k for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 11:56:15 -0500 Received: from lo.gmane.org ([80.91.229.12]:54278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgJH3-0006E0-1Y for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 11:56:13 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RgJGz-0006F8-Hv for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 17:56:09 +0100 Received: from p578f1f5b.dip.t-dialin.net ([87.143.31.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Dec 2011 17:56:09 +0100 Received: from Stromeko by p578f1f5b.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Dec 2011 17:56:09 +0100 In-Reply-To: <20220.19946.360761.625682@a1i15.kph.uni-mainz.de> 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 Am 29.12.2011 12:24, schrieb Ulrich Mueller: > 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. IMHO, an _installed_ org mode should never heuristically search any support files -- the location should either be recorded into org-install.el as a constant or made configurable as a defcustom, whichever is more appropriate. > 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? Jambunathan will have to answer that, but a defvar seems the wrong solution to this problem. Also site-start should probably not be (mis-)used to configure the behaviour of packages that the user may not actually use. Making use of variables set in the Makefile is possible, but I would not recommend to do this in any other file except org-install.el. -- Achim. (on the road :-)