From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Correct / best way of loading packages in contrib when using org compiled from git? Date: Fri, 22 Feb 2013 14:39:46 +0100 Message-ID: <877gm0wjq5.fsf@bzg.ath.cx> References: <51260B51.2060006@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8sr0-0005kO-W0 for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 08:40:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8sqs-0007o0-LR for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 08:39:58 -0500 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:53260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8sqs-0007no-Dc for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 08:39:50 -0500 Received: by mail-we0-f182.google.com with SMTP id t57so547640wey.27 for ; Fri, 22 Feb 2013 05:39:49 -0800 (PST) In-Reply-To: <51260B51.2060006@gmail.com> (Rainer M. Krug's message of "Thu, 21 Feb 2013 12:56:01 +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: Rainer@krugs.de Cc: emacs-orgmode 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. > 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. > 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. 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. 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. > 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. I don't install Org files, I use them from the git repo and configure the require accordingly. > 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 ############################# HTH, -- Bastien