emacs-orgmode
[Top][All Lists]
Advanced

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

[O] minimizing mixed installs


From: Rustom Mody
Subject: [O] minimizing mixed installs
Date: Sun, 19 Jan 2014 22:38:33 +0530

After my recent encounters with mixed installs, I poked around a bit
and found this line (around line 80) in org.el

(load "org-loaddefs.el" t t t)

It seems to me (with very scant knowledge of course :D)
- the noerror (first 't' ) makes this fail silently
- to load another org-loaddefs in the path if it exists

Ive replaced this with these 3 lines:

(setq vv (concat (file-name-directory load-file-name) "org-loaddefs.el"))
(message (format "vv is %s" vv))
(load vv nil t t)

This ensures that
- only a sibling org-loaddefs of org.el will be loaded
- if this file -- org-loaddefs -- not found then fail noisily

[The setq and the vv are of course a hack to see whats going on]

On my setup I could check these 4 cases
1 emacs23
2 emacs24

a with org-loaddefs works
b without org-loaddefs gives explicit errors



reply via email to

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