emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* minimizing mixed installs
@ 2014-01-19 17:08 Rustom Mody
  0 siblings, 0 replies; only message in thread
From: Rustom Mody @ 2014-01-19 17:08 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-19 17:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-19 17:08 minimizing mixed installs Rustom Mody

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).