Compatibility: fix XEmacs compilation failures
commitd36a933c6594b8aa010ba20de6608777d11b8b3c
authorAchim Gratz <Stromeko@Stromeko.DE>
Sat, 1 Jun 2013 09:21:48 +0000 (1 11:21 +0200)
committerAchim Gratz <Stromeko@Stromeko.DE>
Sat, 1 Jun 2013 09:31:07 +0000 (1 11:31 +0200)
tree8eacab6be2ca351329ca0cd79c88737499591599
parent0e42f1aae14cb17d52aea3702356514cae086698
Compatibility: fix XEmacs compilation failures

* lisp/ob-eval.el, lisp/ob.el, lisp/org-macro.el, lisp/org-mhe.el:
  Require org-macs and org-compat as necessary.
* lisp/ob-tangle.el: Declare function `org-store-link' and
  `org-open-link-from-string'.
* lisp/org-compat.el: Extend eval-and-compile clause and add advices
  for functions that have different parameter lists in XEmacs. Add
  variable definitions that XEmacs lacks .
* lisp/org-macs.el (declare-function): Define macro to use autoload
  instead for XEmacs.
* lisp/ox-html.el, lisp/ox-odt.el: XEmacs does not have table.el, so
  use 'noerror on the require form.
* lisp/ox-texinfo.el (org-texinfo-table-column-widths): Fix spliced
  argument list that XEmacs complains about by adding parenthesis.

This fixes all compilation failures on XEmacs and warnings related to
Org that indicate that XEmacs has compiled things wrongly (for
instance it might have interpreted a function as a variable symbol).
There are still many warnings that probably indicate serious problems.
lisp/ob-eval.el
lisp/ob-tangle.el
lisp/ob.el
lisp/org-compat.el
lisp/org-macro.el
lisp/org-macs.el
lisp/org-mhe.el
lisp/ox-html.el
lisp/ox-odt.el
lisp/ox-texinfo.el