From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: (ATTN: debugging tip) Re: Opendocument export causes error Date: Tue, 04 Dec 2012 11:10:30 +0530 Message-ID: <87sj7mgysx.fsf_-_@gmail.com> References: <1FAF1B58-C7EB-4145-B452-06932806CC2C@beds.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TflCQ-0002Cg-Gs for emacs-orgmode@gnu.org; Tue, 04 Dec 2012 00:37:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TflCP-0004o8-9u for emacs-orgmode@gnu.org; Tue, 04 Dec 2012 00:37:42 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:61378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TflCP-0004o2-3S for emacs-orgmode@gnu.org; Tue, 04 Dec 2012 00:37:41 -0500 Received: by mail-pa0-f41.google.com with SMTP id bj3so2401061pad.0 for ; Mon, 03 Dec 2012 21:37:40 -0800 (PST) In-Reply-To: (Achim Gratz's message of "Mon, 3 Dec 2012 08:08:59 +0000 (UTC)") 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: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz 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. --