Carsten Dominik writes: > On Jun 14, 2009, at 8:22 AM, Baoqiu Cui wrote: > >> Hi Carsten, >> >> Thanks for the quick fix. However the problem still exists on my >> computer (running "GNU Emacs 22.3.1 (i386-apple-darwin9.5.0, Carbon >> Version 1.6.0) of 2008-10-31 on leopard.local"). >> >> Here is what I got: >> >> ------------------------------------------------------------------------ >> $ pwd >> /Users/bcui/elisp/org-mode >> $ make update >> ... >> In end of data: >> org-compat.el:335:1:Warning: the function `add-local-hook' is not >> known to be >> defined. >> Wrote /Users/bcui/elisp/org-mode/lisp/org-compat.elc >> emacs -batch -q -no-site-file -eval "(progn (add-to-list (quote load- >> path) (expand-file-name \"./lisp/\")) (add-to-list (quote load-path) >> \"/usr/local/share/emacs/site-lisp\"))" -f batch-byte-compile lisp/ >> org-exp.el >> Source file `/usr/local/share/emacs/site-lisp/org.el' newer than >> byte-compiled file >> Source file `/usr/local/share/emacs/site-lisp/org-footnote.el' newer >> than byte-compiled file >> Source file `/usr/local/share/emacs/site-lisp/org-agenda.el' newer >> than byte-compiled file >> >> In toplevel form: >> lisp/org-exp.el:31:1:Error: Symbol's value as variable is void: org- >> protecting-blocks >> make[1]: *** [lisp/org-exp.elc] Error 1 >> make: *** [update] Error 2 >> ------------------------------------------------------------------------ >> >> In directory "/usr/local/share/emacs/site-lisp/" I have some .el files >> that are newer than the .elc files, but since I don't use them, I >> don't >> think they are related. > > Well, something must be wrong here, because in org-exp.el I have > > (require 'org) > (require 'org-agenda) > (require 'org-exp-blocks) ; this is line 31 > > org.el gets loaded before org-exp-blocks... > Found the problem. Some of the old elisp files (for version 6.24) in my "/usr/local/share/emacs/site-lisp/" were loaded before the versions in "/Users/bcui/elisp/org-mode". Here is a patch to Makefile to fix this (just switch the order of two directories):