From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Correct / best way of loading packages in contrib when using org compiled from git? Date: Fri, 22 Feb 2013 15:08:17 +0100 Message-ID: <51277BD1.8080707@gmail.com> References: <51260B51.2060006@gmail.com> <877gm0wjq5.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8tIb-0003i5-7q for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 09:08:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8tIU-00006K-V3 for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 09:08:29 -0500 Received: from mail-wi0-f174.google.com ([209.85.212.174]:58217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8tIU-000062-OE for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 09:08:22 -0500 Received: by mail-wi0-f174.google.com with SMTP id hi8so960243wib.13 for ; Fri, 22 Feb 2013 06:08:21 -0800 (PST) In-Reply-To: <877gm0wjq5.fsf@bzg.ath.cx> 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 , Rainer@krugs.de Cc: emacs-orgmode -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 22/02/13 14:39, Bastien wrote: > Hi Rainer, > > Rainer M Krug writes: > >> #ORG_ADD_CONTRIB = org-e-* org-md org-export # e.g. the new exporter > > The comment above was outdated since org-e-* files don't exist anymore. I updated it. Didn't realise that... > >> So I would have to add >> >> ORG_ADD_CONTRIB = org-notmuch >> >> to the local.mk file > > This is correct and will tell Org to compile and install org-notmuch.el. > > But you will still have to require it in your configuration. Ok - that makes sense. I just checked in my contrib/lisp and I only have .el there, so none are compiled. > >> Nevertheless, I would like to stick with a configutration which uses the normal compiled >> version and all configurations are in one file (emacs.org), so I would prefer the require... >> approach. > > Compiling, installing and requiring are three different things. > > The makefile rules take care of the first two, while your config file needs to take care of the > third one in any case. Ok. > > If you set the load-path to include the "contrib/lisp/" directory, then you don't need to > install org-notmuch, and (require 'org-notmuch) will find it. Well - I don't install org, but just specify the load-path, so I have to specify that one as well. No problem. > > If you don't want to bother setting the load-path for "contrib/lisp/" then you want to install > Org. In this case, org-notmuch will not be installed unless you add the "ORG_ADD_CONTRIB = > org-notmuch" rule. Ok - makes sense. > >> But I would like to have some clarification, what the differences are between the two >> approaches and if (and if yes, why) it would be advisable to use the second approach. > > I hope the above clarifies things. Absolutely - thanks. > > I don't install Org files, I use them from the git repo and configure the require accordingly. > Yes - that is what I am doing as well. Just for clarifications: is there any problem with adding ORG_ADD_CONTRIB = * to the local.mk file, apart from slightly longer compilation times? > >> PS: I update my git almost daily via the following script: > > This should be enough > > ############################# #!/bin/sh cd ~/.emacs.d/org-mode-git/org-mode make update > ############################# Ok - I'll change it accordingly. Thanks a lot, Rainer > > HTH, > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRJ3vRAAoJENvXNx4PUvmCabcH/AzwB4P8Qcu/mNBnx9rtwVgE O2jVV7skAbrjExOI2lP1JLs2K1AAzbzYMapIMpNnzpU+2ozPvP390S6C9zs7EXMs G0VRBDhOQxJyezXpeBkgdyxMxNwnPdkldvVeltMrJFEIRApe5Y2/NC7Zw6Lm+ASr p/AxnIlZODZZTwZltvA/7wx6u1ZuWyH1jlEHbmpncqZqjqiimhLl5vXt3K8y3/GG q7HDJwbDEVunWxWQZxvH7/E+QxnJV082tcKONDs8YJNaEo+7gnLiLnMUZS4sjBGi NnkjoqCaWYltHTpZbG57YbzntFr4htn3k5KjxI4sKiMqLSgCW19ykTheOSC2dCA= =TBD/ -----END PGP SIGNATURE-----