From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Packaging Org: how to put the newer version in load-path? Date: Thu, 07 Jul 2011 18:42:12 +0200 Message-ID: <87zkkqxct7.fsf@Rainer.invalid> References: <87pqlmh1qh.fsf@zephyr.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qeres-0006MC-Al for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 12:42:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qereq-0006Su-40 for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 12:42:33 -0400 Received: from lo.gmane.org ([80.91.229.12]:57568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qerep-0006Sa-9G for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 12:42:31 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qerel-0006i5-T5 for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 18:42:27 +0200 Received: from p57aab5ce.dip.t-dialin.net ([87.170.181.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Jul 2011 18:42:27 +0200 Received: from Stromeko by p57aab5ce.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Jul 2011 18:42:27 +0200 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 Sean Whitton writes: > I am presently packaging up Org from git for a new (to me) GNU/Linux > distribution I am switching to, CRUX [1], and I can’t figure out the > clean way to get the new version of Org in /usr/share/emacs/site-lisp to > override that in /usr/share/emacs/23.3. I mean I could easily add it to > the front of my load-path in my own init file, but I don’t have to do > that on Arch Linux, which I am switching away from, because something > somewhere is adding it to the front of load-path for me. What might > this be, so that I might duplicate this? Is there a system-wide file > full of load paths for Emacs that I am missing? This depends on how Emacs was configured. The initial load-path is defined in epath.h or can be overridden by an environment variable EMACSLOADPATH. The invocation emacs -Q -nw --batch --eval '(message "%s" load-path)' tells you what the load-path is before running any startup scripts (if subdirs.el is existing in any of the initial load-path directories, then any subdirectories should have been expanded already). The standard setup should be looking for …/$VERSION/site-lisp …/site-lisp …/$VERSION/lisp …/$VERSION/leim (maybe) in that order (first version specific site-lisp, then site-lisp, then the lisp that came with that installation of Emacs). It could be configured to use a different prefix for any site-lisp directories to keep them separate from the installation. HTH, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ DIY Stuff: http://Synth.Stromeko.net/DIY.html