org-mode broken dynamic clock: Symbol's function definition is void: org-defvaralias
Asked Answered
J

2

9

For months I've been enjoying use of the org dynamic clock block (C-c C-x C-r) to help with my hour clocking. Suddenly I find it's not working, though. The only things I've changed is downloading the list-packages org-contrib and org-mode.

M-x org-version

Org-mode version 7.8.11

Attempt to update/add dynamic block (C-c C-x C-r)

Symbol's function definition is void: org-defvaralias

I tried to do manual execution of defuns in some of the org .el files, but that just made things worse. Any suggestions on the cleanest way to fix this?

I actually can't even clock-in anymore, with the same error.

I have verified that this is a result of the org-contrib install from ELPA, which seems to break it. This is sad, since I was putting good use to other org-contrib files.

Jeer answered 29/4, 2013 at 14:35 Comment(0)
J
9

I finally got around to fixing this. The key resource was http://orgmode.org/manual/Installation.html, and the solution boils down to two things I was doing wrong when I tried to install through the list-packages:

  • Remember to start have emacs running without having opened ANY org files or org-config settings. Best way to do this is M-xkill-emacs and start again with emacs -q.

  • Add to the top of your .emacs file:

;; Configure before loading org mode (package-initialize)  
(package-initialize)

I've written a little more about it here.

Jeer answered 15/4, 2014 at 14:53 Comment(2)
Maybe you should execute(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t) before M-x list-packages in order to install org-plus-contrib as well(according to installation). BTW, can I just ignore your solution and just delete all the org in /usr/share/emacs/ and then update the org in the usual elpa way?Sexagesima
BTW, I don't understand why I should using emacs -q(not load built-in org-mode) to install org using elpa, does loading org-mode before installing will affect the compilation of org-mode???Sexagesima
W
5

I don't know if that helps, but you could try:

M-x load-library RET org-compat RET.

Even if it works, this is not the solution, simply an ugly workaround.

Try asking your question on the orgmode mailing list, it gets more audience there.

Worldling answered 29/4, 2013 at 20:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.