* Re: Opendocument export causes error
@ 2012-12-02 21:14 Torsten Anders
2012-12-03 8:08 ` Achim Gratz
0 siblings, 1 reply; 4+ messages in thread
From: Torsten Anders @ 2012-12-02 21:14 UTC (permalink / raw)
To: Org-mode
Dear Achim,
Thanks a lot for your help!
> Try adding (require 'org) or alternatively — if you know you never
> use the Org version that comes with Emacs (that means you need to be
> extra careful with things like 'emacs -Q') — (require 'org-loaddefs).
I tried both adding (require 'org) and (require 'org-loaddefs) to ~/.emacs but they both make no difference to this problem, I still get the error
call-interactively: Symbol's value as variable is void: err
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")
> here's your real-world example of how things don't work if the wrong autoload definitions are used.
Does this mean there are possibly more things that did not load as they should?
Thanks a lot again!
Best wishes,
Torsten
--
Dr Torsten Anders
Course Leader, Music Technology
University of Bedfordshire
Park Square, Room A315
http://www.torsten-anders.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Opendocument export causes error
2012-12-02 21:14 Opendocument export causes error Torsten Anders
@ 2012-12-03 8:08 ` Achim Gratz
2012-12-04 5:40 ` (ATTN: debugging tip) " Jambunathan K
0 siblings, 1 reply; 4+ messages in thread
From: Achim Gratz @ 2012-12-03 8:08 UTC (permalink / raw)
To: emacs-orgmode
Torsten Anders <torsten.anders <at> beds.ac.uk> writes:
> I tried both adding (require 'org) and (require 'org-loaddefs) to ~/.emacs
> but they both make no difference to this problem, I still get the error
>
> call-interactively: Symbol's value as variable is void: err
Yes, that problem is apparently someplace else. I'll let Jambunathan have a go
first.
> 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.
> Does this mean there are possibly more things that did not load as they should?
The combination of the version of Org in your version of Emacs and a more recent
Org can't be expected to work correctly in all cases unless you add one of the
requires I've shown.
Regards,
Achim.
^ permalink raw reply [flat|nested] 4+ messages in thread
* (ATTN: debugging tip) Re: Opendocument export causes error
2012-12-03 8:08 ` Achim Gratz
@ 2012-12-04 5:40 ` Jambunathan K
2012-12-04 7:29 ` Achim Gratz
0 siblings, 1 reply; 4+ messages in thread
From: Jambunathan K @ 2012-12-04 5:40 UTC (permalink / raw)
To: Achim Gratz; +Cc: emacs-orgmode
Achim Gratz <Stromeko@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.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: (ATTN: debugging tip) Re: Opendocument export causes error
2012-12-04 5:40 ` (ATTN: debugging tip) " Jambunathan K
@ 2012-12-04 7:29 ` Achim Gratz
0 siblings, 0 replies; 4+ messages in thread
From: Achim Gratz @ 2012-12-04 7:29 UTC (permalink / raw)
To: emacs-orgmode
Jambunathan K <kjambunathan <at> gmail.com> writes:
> So org-odt indirectly requires org-compat.
Even though it may have no bearing in this case: AFAICS it uses a macro from
org-compat directly, so it shouldn't rely on other files to pull in that
definition, it should require it directly.
> In OP's case, the org-compat
> is provided by older library that comes with Vanilla Emacs.
Unless I'm missing something, this is only possible if it gets loaded before the
load-path to the new Org is set up. If so, a (require 'org-compat) would not
correct the situation, while a (load-library "org-compat") would. I would like
to see the value of load-history on the OP's box after an
emacs -Q -L /path/to/org
if possible.
Regards,
Achim.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-12-04 7:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-02 21:14 Opendocument export causes error Torsten Anders
2012-12-03 8:08 ` Achim Gratz
2012-12-04 5:40 ` (ATTN: debugging tip) " Jambunathan K
2012-12-04 7:29 ` Achim Gratz
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).