Compatibility: Use org-load-noerror-mustsuffix
commit5484a33b8d1382958095922bc9bc2bd6f1d9ffc6
authorAchim Gratz <Stromeko@Stromeko.DE>
Sun, 6 Jan 2013 17:24:56 +0000 (6 18:24 +0100)
committerAchim Gratz <Stromeko@Stromeko.DE>
Sun, 6 Jan 2013 17:33:34 +0000 (6 18:33 +0100)
treee1cdb11c59ef404d08eb1b2275e892ec3b54d7e1
parent8fcdb5179bbe172b52dd80101efe247de9fe1ac2
Compatibility: Use org-load-noerror-mustsuffix

* lisp/org-macs.el: New macro to allow the 5-argument form of load to
  be used where possible without breaking compatibility with XEmacs.

* lisp/org.el (org-version, org-reload): Use
  `org-load-noerror-mustsuffix´ instead of adding a fifth argument to
  load directly.  Guard against undefined variable load-suffixes,
  which doesn't exist in XEmacs.

Since load-suffixes doesn't exist in XEmacs, (org-reload 'uncompiled)
will not work.  If it doesn't complicate the compatibility macro too
much this can be added later.
lisp/org-macs.el
lisp/org.el