From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: Compilation error about org-protecting-blocks Date: Sun, 14 Jun 2009 00:32:21 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFkCm-0002GA-84 for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 03:32:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFkCh-0002FP-Gt for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 03:32:39 -0400 Received: from [199.232.76.173] (port=43832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFkCh-0002FH-9z for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 03:32:35 -0400 Received: from main.gmane.org ([80.91.229.2]:34012 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MFkCg-0000Xh-Nw for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 03:32:35 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MFkCe-000683-VR for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 07:32:32 +0000 Received: from adsl-76-192-233-190.dsl.pltn13.sbcglobal.net ([76.192.233.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jun 2009 07:32:32 +0000 Received: from cbaoqiu by adsl-76-192-233-190.dsl.pltn13.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jun 2009 07:32:32 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= 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): --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=Makefile.diff 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 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--