From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Babel related bug in elpa version 20121231 Date: Sat, 05 Jan 2013 08:07:41 +0100 Message-ID: <87mwworttu.fsf@Rainer.invalid> References: <1342018996.75825.YahooMailNeo@web29804.mail.ird.yahoo.com> <8738ygbpvg.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrNrG-0004W3-EN for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 02:07:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrNrE-0007kj-Vs for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 02:07:54 -0500 Received: from plane.gmane.org ([80.91.229.3]:59485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrNrE-0007kW-QH for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 02:07:52 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TrNrS-00013g-Tg for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 08:08:06 +0100 Received: from pd9eb54c2.dip.t-dialin.net ([217.235.84.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Jan 2013 08:08:06 +0100 Received: from Stromeko by pd9eb54c2.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Jan 2013 08:08:06 +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: emacs-orgmode@gnu.org Robert Horn writes: > Starterkit does have code that looked correct and proper for > coordinating the init with elpa, and I think that for packages not > used by org-mode it will be OK. But, the automagic startup executes the > lisp code using babel from org files. This means that org and it's > dependencies are partially loaded before elpa is initialized. This > means problems for org and any other dependent packages. Yes, and that's a problem already in ELPA. It does make an implicit assumption that no ELPA package is already delivered with Emacs, but that is not true with Org. It also makes the implicit assumption that you can recompile the new version of a package when the old version has already been loaded, which is also (sometimes, not often) not true with Org. I don't know enough about starterkit to know if it makes the same assumptions. The obvious solution for the problem mentioned above would be to tangle the org files to elisp rather than executing them directly and restart Emacs when something has changed, but that may not be enough. > I think the long term solution will have to be abandoning the automagic > startup. I'll try to make a bugreport against package manager. I'm not sure what will happen since properly fixing it would likely be a lot of work... > If there were a "compile and install" operation in starterkit > to take the org files and use babel to convert them into elc, it would > be a little bit less magic for the novice user, but it would eliminate > this interaction between it and elpa. I do expect novice users to use > the package mechanism, so they will run into this problem if they want a > more recent version of org-mode than is packaged with their emacs. I hope that a later version of Emacs (not the upcoming 24.3, though) will properly move the bundled Org into a package. That's been talked about for a while, but has not happened since it will likely require a few more tweaks to the way package manager works. Meanwhile, one thing that starterkit can do as a workaround is to do an org-reload right after the path to package directory has been installed. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra