Achim Gratz <strom...@nexgo.de> writes:

>> Instead, adding the following to ~/.emacs does work, but this seems
>> to be just a hack. Should I really use this?
>> 
>> (load-library "org-compat.el")
>> (load-library "org-odt.el")
>
> If the problem is where I think it is, then a (require 'org-compat)
> should be a valid workaround until the final fix is in Org.

This is how org-compat.el gets loaded.  The load sequence is triggered
by

    emacs -Q -L /org/path 
    M-x load-library RET org-odt RET.

,----
| *** Welcome to IELM ***  Type (describe-mode) for help.
| ELISP> (symbol-file 'org-compat 'require)
| "/home/kjambunathan/src/org-mode/lisp/org.elc"
| ELISP> (symbol-file 'org 'require)
| "/home/kjambunathan/src/org-mode/lisp/org-exp.elc"
| ELISP> (symbol-file 'org-exp 'require)
| "/home/kjambunathan/src/org-mode/lisp/org-lparse.elc"
| ELISP> (symbol-file 'org-lparse 'require)
| "/home/kjambunathan/src/org-mode/lisp/org-odt.elc"
| ELISP> (symbol-file 'org-odt 'require)
| nil
`----

So org-odt indirectly requires org-compat.  In OP's case, the org-compat
is provided by older library that comes with Vanilla Emacs.

-- 

Reply via email to