From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Anders Subject: Re: Opendocument export causes error Date: Tue, 25 Dec 2012 21:58:54 +0000 Message-ID: <3962CCBD-3CAD-4CE9-AA3C-ED66736FA932@beds.ac.uk> References: <9A971BBA-5975-417F-B85A-564E06CA77B5@beds.ac.uk> <87mwxv7jym.fsf@gmail.com> <6A0D558E-067D-4EB7-B2EF-0DA25BABEA4C@beds.ac.uk> <87wqwygz48.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TncWa-0005om-Bz for emacs-orgmode@gnu.org; Tue, 25 Dec 2012 16:59:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TncWY-0002io-IX for emacs-orgmode@gnu.org; Tue, 25 Dec 2012 16:59:00 -0500 Received: from smtp.idnet.com ([212.69.40.133]:45972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TncWY-0002ih-A4 for emacs-orgmode@gnu.org; Tue, 25 Dec 2012 16:58:58 -0500 Received: from localhost (unknown [127.0.0.1]) by smtp.idnet.com (Postfix) with ESMTP id 8B2C79F969 for ; Tue, 25 Dec 2012 21:58:55 +0000 (UTC) Received: from smtp.idnet.com ([127.0.0.1]) by localhost (smtp.idnet.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o8A0md92tfCc for ; Tue, 25 Dec 2012 21:58:54 +0000 (GMT) Received: from smtp.idnet.com (template [127.0.0.1]) by smtp.idnet.com (Postfix) with ESMTP id 3163A9F985 for ; Tue, 25 Dec 2012 21:58:54 +0000 (GMT) Received: from [192.168.0.4] (cust132-dsl91-135-3.idnet.net [91.135.3.132]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.idnet.com (Postfix) with ESMTPS id 00F639F969 for ; Tue, 25 Dec 2012 21:58:53 +0000 (GMT) In-Reply-To: <87wqwygz48.fsf@gmail.com> 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: Org-mode Dear Jambunathan and others, Apologies for resending this message, but my email from yesterday = seemingly did not arrive. To summarise at first, the results in my 2nd IELM session (at the end of = the message below) differed clearly from those in your kindly provided = template -- in several cases symbol-file returned nil instead a path, = and for (symbol-file 'org-macs 'require) it returns a different path = that in your template. Does that perhaps point towards the problem?=20 Here is the full story. Please remember that I cannot not use the = OpenDocument export, because -- as far as I understood -- (the correct = version of) "org-compat.el" and "org-odt.el" are not loaded. This is = perhaps caused by the fact that the Emacs I am using (the latest stable = release of Aquamacs, version 2.4) is based on the rather old GNU Emacs = 23.3.50.1. Aquamacs is widely used on the Mac platform, so likely I am = not the only one with these problems.=20 I temporarily fixed my problem by loading the respective libraries = manually in my ~/.emacs file as below, but as others may also have this = problem this is probably not the best and certainly not a clean = solution. ;; TMP hack to get OpenDocument export working again (load-library "org-compat.el") (load-library "org-odt.el") Anyway, I finally ran the tests you suggested (thanks a lot for = detailing these!). > 1. Load Emacs like this. Adjust the `-L's. Note also the -Q. >=20 > emacs --debug-init -L ~/src/org-mode/lisp -L = ~/src/org-mode/contrib/lisp -Q Aquamacs started. Clearly, Aquamacs was not fully loaded (e.g., standard = Mac short-cuts where not yet defined). Anyway, it output the following = message in *Messages* Aquamacs is based on GNU Emacs, a part of the GNU/Linux system. It is = Free Software: you can improve and redistribute it under the GNU General = Public License, version 3 or later. Copyright (C) 2011 Free Software = Foundation, Inc. (C) 2011 D. Reitter. No Warranty. ns-handle-drag-file: Symbol's value as variable is void: = one-buffer-one-frame-mode To double check, I confirmed the Emacs version. GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-25 on braeburn.aquamacs.org Copyright (C) 2011 Free Software Foundation, Inc. > 2. M-x load-library RET org-odt RET Loading org-odt... Loading /Users/torsten/emacs/org-mode/lisp/org-loaddefs.el = (source)...done Debug (org-odt): Searching for OpenDocument schema files... Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times] Debug (org-odt): No OpenDocument schema files installed Debug (org-odt): Searching for OpenDocument styles files... Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times] Debug (org-odt): Trying /Users/torsten/emacs/org-mode/etc/styles/... Debug (org-odt): Using styles under = /Users/torsten/emacs/org-mode/etc/styles/ Loading org-odt...done > 3. M-x ielm RET > | ELISP> (symbol-file 'org-compat 'require) "/Users/torsten/emacs/org-mode/lisp/org.elc" > | ELISP> (symbol-file 'org 'require) "/Users/torsten/emacs/org-mode/lisp/org-exp.elc" > | ELISP> (symbol-file 'org-exp 'require) "/Users/torsten/emacs/org-mode/lisp/org-lparse.elc" > | ELISP> (symbol-file 'org-lparse 'require) "/Users/torsten/emacs/org-mode/lisp/org-odt.elc" > | ELISP> (symbol-file 'org-odt 'require) nil I restarted Aquamacs and repeated all above except for the previous ielm = session (just in case, as I do not know whether symbol-file has any side = effects). > | ELISP> (symbol-file 'org-compat 'require) "/Users/torsten/emacs/org-mode/lisp/org.elc" > | ELISP> (symbol-file 'org 'require) "/Users/torsten/emacs/org-mode/lisp/org-exp.elc" > | ELISP> (symbol-file 'org-element 'require) nil > | ELISP> (symbol-file 'org-export 'require) nil > | ELISP> (symbol-file 'org-e-odt 'require) nil > | ELISP> (symbol-file 'org-macs 'require) "/Users/torsten/emacs/org-mode/lisp/org-exp.elc" Again, thanks a lot for your help! Best wishes, Torsten On 4 Dec 2012, at 05:33, Jambunathan K wrote: >> I will go through your detailed list of suggestions a bit >> later. Thanks a lot again for your help! >=20 > I hope you do revert with your observations on broken setup. =20 >=20 > In my experience, most users don't :-). >=20 > 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. >=20 > 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. =20 >=20 > When the err happens, >=20 > 1. Load Emacs like this. Adjust the `-L's. Note also the -Q. >=20 > emacs --debug-init -L ~/src/org-mode/lisp -L > ~/src/org-mode/contrib/lisp -Q >=20 > 2. M-x load-library RET org-odt RET >=20 > 3. M-x ielm RET >=20 > 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. >=20 > The sequence below is courtesy this suggestion/thread: > = http://lists.gnu.org/archive/html/help-gnu-emacs/2012-11/msg00227.html >=20 >=20 > So the load chain is: > org-compat <=3D org <=3D org-exp <=3D org-lparse <=3D org-odt >=20 > ,---- > | *** 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 > `---- >=20 > So the load chain is: > org-compat <=3D org <=3D org-element <=3D org-export <=3D org-e-odt >=20 > ,---- > | *** 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" > `---- >=20 > ps: I hope I am invoking `symbol-file' properly. >=20 > -- -- Dr Torsten Anders Course Leader, Music Technology University of Bedfordshire Park Square, Room A315 http://www.torsten-anders.de