From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [PATCH] org-reload doesn't use full emacs load-path? Date: Tue, 29 May 2012 21:45:26 +0200 Message-ID: <87bol6u5yh.fsf@Rainer.invalid> References: <877gvvsqiy.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZSMU-0006iQ-UD for emacs-orgmode@gnu.org; Tue, 29 May 2012 15:45:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZSMS-0004Co-03 for emacs-orgmode@gnu.org; Tue, 29 May 2012 15:45:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:58649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZSMR-0004CW-P5 for emacs-orgmode@gnu.org; Tue, 29 May 2012 15:45:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SZSMP-0007wq-LB for emacs-orgmode@gnu.org; Tue, 29 May 2012 21:45:41 +0200 Received: from pd9eb2f43.dip.t-dialin.net ([217.235.47.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 May 2012 21:45:41 +0200 Received: from Stromeko by pd9eb2f43.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 May 2012 21:45:41 +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 --=-=-= Content-Type: text/plain Eric S Fraga writes: > For some reason, org tries to load my ob-jacaranda.el from where org > itself sits despite ob-jacaranda.el being in one of the directories in > the load-path. That would have been me, but it was obviously the wrong thing to do. Patch attached, please test. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Revert-an-undesirable-change-in-org-reload.patch Content-Description: fix org-reload >From 3234f4ed6329240101172f823931f5b2a0c4fa6f Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Tue, 29 May 2012 21:43:27 +0200 Subject: [PATCH] Revert an undesirable change in org-reload. * lisp/org.el (org-reload): Revert an undesirable change in org-reload. Do not prepend org-dir to babel-files, which prevents the files from being found in load-path. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 1f8e13f..0a1fd35 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19604,7 +19604,7 @@ (defun org-reload (&optional uncompiled) (file-name-directory (org-find-library-dir "org-contribdir")))) (babel-files - (mapcar (lambda (el) (concat (concat dir-org "ob") (when el (format "-%s" el)) ".el")) + (mapcar (lambda (el) (concat "ob" (when el (format "-%s" el)) ".el")) (append (list nil "comint" "eval" "exp" "keys" "lob" "ref" "table" "tangle") (delq nil -- 1.7.9.2 --=-=-= Content-Type: text/plain > One possible worry: even with emacs -Q, I get org-version returning the > following: > > Org-mode version 7.8.10 (release_7.8.10-619-g540dfc @ mixed installation! /usr/share/emacs/24.1.50/lisp/org/ and /home/ucecesf/git/org-mode/lisp/) > > Note the "mixed installation" bit. I've never seen this before. It tells you that org-install is found in a different place than org. This probably means you haven't done a 'make autoloads' or more likely in your case a 'make uncompiled' and are relying on the autoload definitions from a different org version than the one you are using. You can't expect that to work and this is a gentle reminder to fix it before it falls over. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds --=-=-=--