emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Baoqiu Cui <cbaoqiu@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: Re: Compilation error about org-protecting-blocks
Date: Sun, 14 Jun 2009 00:32:21 -0700	[thread overview]
Message-ID: <bychbyjqni2.fsf@muchbodyking-lm.gateway.2wire.net> (raw)
In-Reply-To: FA9AD419-F29E-454A-A830-8E0C2351D60D@gmail.com

[-- Attachment #1: Type: text/plain, Size: 2094 bytes --]

Carsten Dominik <carsten.dominik@gmail.com> 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):


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Makefile.diff --]
[-- Type: text/x-patch, Size: 614 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 59 bytes --]


Please let me know if this is a good fix.

Thanks,
Baoqiu

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  reply	other threads:[~2009-06-14  7:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-14  5:42 Compilation error about org-protecting-blocks Baoqiu Cui
2009-06-14  6:05 ` Carsten Dominik
2009-06-14  6:22   ` Baoqiu Cui
2009-06-14  6:28     ` Carsten Dominik
2009-06-14  7:32       ` Baoqiu Cui [this message]
2009-06-14  7:40         ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bychbyjqni2.fsf@muchbodyking-lm.gateway.2wire.net \
    --to=cbaoqiu@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).