From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Opendocument export causes error Date: Tue, 04 Dec 2012 11:03:43 +0530 Message-ID: <87wqwygz48.fsf@gmail.com> References: <9A971BBA-5975-417F-B85A-564E06CA77B5@beds.ac.uk> <87mwxv7jym.fsf@gmail.com> <6A0D558E-067D-4EB7-B2EF-0DA25BABEA4C@beds.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfmAH-0006LN-Ss for emacs-orgmode@gnu.org; Tue, 04 Dec 2012 01:39:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfmAG-00027A-Hg for emacs-orgmode@gnu.org; Tue, 04 Dec 2012 01:39:33 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:34355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tfl5q-0003SF-Ne for emacs-orgmode@gnu.org; Tue, 04 Dec 2012 00:30:55 -0500 Received: by mail-pa0-f41.google.com with SMTP id bj3so2397112pad.0 for ; Mon, 03 Dec 2012 21:30:53 -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: Torsten Anders Cc: Org-mode > 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. --