From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rustom Mody Subject: minimizing mixed installs Date: Sun, 19 Jan 2014 22:38:33 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4vrl-00013P-9l for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 12:08:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4vrj-00074g-3Q for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 12:08:57 -0500 Received: from mail-pb0-x233.google.com ([2607:f8b0:400e:c01::233]:47867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4vri-00074Z-SM for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 12:08:55 -0500 Received: by mail-pb0-f51.google.com with SMTP id un15so2379623pbc.38 for ; Sun, 19 Jan 2014 09:08:54 -0800 (PST) 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 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