emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Compilation error about org-protecting-blocks


From: Baoqiu Cui
Subject: [Orgmode] Re: Compilation error about org-protecting-blocks
Date: Sun, 14 Jun 2009 00:32:21 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin)

Carsten Dominik <address@hidden> 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):

diff --git a/Makefile b/Makefile
index e867e6b..9b48c98 100644
--- a/Makefile
+++ b/Makefile
@@ -29,8 +29,8 @@ infodir = $(prefix)/share/info
 # Using emacs in batch mode.
 
 BATCH=$(EMACS) -batch -q -no-site-file -eval                             \
- "(progn (add-to-list (quote load-path) (expand-file-name \"./lisp/\")) \
-        (add-to-list (quote load-path) \"$(lispdir)\"))"
+ "(progn (add-to-list (quote load-path) \"$(lispdir)\") \
+         (add-to-list (quote load-path) (expand-file-name \"./lisp/\")))"
 
 # Specify the byte-compiler for compiling org-mode files
 ELC= $(BATCH) -f batch-byte-compile
Please let me know if this is a good fix.

Thanks,
Baoqiu

reply via email to

[Prev in Thread] Current Thread [Next in Thread]