[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] org-reload doesn't use full emacs load-path?

From: Achim Gratz
Subject: Re: [O] [PATCH] org-reload doesn't use full emacs load-path?
Date: Tue, 29 May 2012 21:45:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

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.

>From 3234f4ed6329240101172f823931f5b2a0c4fa6f Mon Sep 17 00:00:00 2001
From: Achim Gratz <address@hidden>
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)
                            (org-find-library-dir "org-contribdir"))))
-         (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

> 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.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Blofeld:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]