> I will go through your detailed list of suggestions a bit > later. Thanks a lot again for your help!
I hope you do revert with your observations on broken setup. In my experience, most users don't :-). There is some confusion around the area of macros and autoloads. Something is amiss. Only non-programmers seem to run in to this and it has been very difficult to understand what is happening on their setup, without their co-operation. Here is another suggestion. A bit easy one though. This will be archived and will serve as a written hint to debug macro/autoload issues. When the err happens, 1. Load Emacs like this. Adjust the `-L's. Note also the -Q. emacs --debug-init -L ~/src/org-mode/lisp -L ~/src/org-mode/contrib/lisp -Q 2. M-x load-library RET org-odt RET 3. M-x ielm RET Here is a sample session both for org-odt and org-e-odt. Sample illustrates the sequence of events that led org-compat.el to be loaded. The sequence below is courtesy this suggestion/thread: http://lists.gnu.org/archive/html/help-gnu-emacs/2012-11/msg00227.html So the load chain is: org-compat <= org <= org-exp <= org-lparse <= org-odt ,---- | *** 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 the load chain is: org-compat <= org <= org-element <= org-export <= org-e-odt ,---- | *** 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-element.elc" | ELISP> (symbol-file 'org-element 'require) | "/home/kjambunathan/src/org-mode/contrib/lisp/org-export.el" | ELISP> (symbol-file 'org-export 'require) | "/home/kjambunathan/src/org-mode/contrib/lisp/org-e-odt.elc" | ELISP> (symbol-file 'org-e-odt 'require) | nil | ELISP> (symbol-file 'org-macs 'require) | "/home/kjambunathan/src/org-mode/lisp/org.elc" `---- ps: I hope I am invoking `symbol-file' properly. --