From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulrich Mueller Subject: Re: Location of OpenDocument style files should be configurable Date: Tue, 3 Jan 2012 15:59:20 +0100 Message-ID: <20227.6088.37039.993600@a1i15.kph.uni-mainz.de> References: <20220.19946.360761.625682@a1i15.kph.uni-mainz.de> <81k45du97t.fsf@gmail.com> <20222.21041.522506.741641@a1i15.kph.uni-mainz.de> <20224.42871.411055.861546@a1i15.kph.uni-mainz.de> <20224.50573.418581.674268@a1i15.kph.uni-mainz.de> <81sjjykxet.fsf@gmail.com> <20226.52383.241764.850928@a1i15.kph.uni-mainz.de> <87k459ulx2.fsf@gnu.org> 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]:34087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri5ps-00048v-8L for emacs-orgmode@gnu.org; Tue, 03 Jan 2012 09:59:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ri5pm-0001VB-IC for emacs-orgmode@gnu.org; Tue, 03 Jan 2012 09:59:32 -0500 Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:46611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri5pm-0001Uu-7Q for emacs-orgmode@gnu.org; Tue, 03 Jan 2012 09:59:26 -0500 In-Reply-To: <87k459ulx2.fsf@gnu.org> 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: Bastien Cc: emacs-orgmode@gnu.org, Jambunathan K >>>>> On Tue, 03 Jan 2012, Bastien wrote: >>> ps: Makefiles are beyond my jurisdiction. I will let Bastien act >>> on your patch(es). >> >> Looks like my earlier patch hasn't been applied for 7.8.03. :( > Yes -- things are not entirely clear to me in this area, and the > ongoing discussion between you, Achim and Jambunathan feels like > we need to move carefully. To summarise as I see the issue: - Because arbitrary paths for datadir can be specified at compile time, any approach using (only) heuristic searches at run time is bound to fail in some configurations. - Most other packages using such heuristics provide a way for overriding it. The simplest way is just using defvar or defcustom (but not a defconst) for the variable definition. (This was my original suggestion, which would have been trivial to implement.) - However, if the location is known at compile time, there is also no need for such searches, because the datadir path can be embedded in the lisp code. - Preferably, the package should behave the same, regardless if it is loaded as elisp sources or as byte-compiled files. Embedding the path only in the byte code may be too fragile (in fact, for 7.8.03 it currently fails with Gentoo's staged installs), and also lead to surprising behaviour. - Therefore I think the best approach would be either to record such paths in org-install.el (as Achim has suggested), or to have the Makefile create a new file like org-paths.el for this purpose. Cheers, Ulrich