From mboxrd@z Thu Jan  1 00:00:00 1970
From: Achim Gratz <Stromeko@nexgo.de>
Subject: Re: [BUG] Traceback on Org-Export
Date: Sat, 04 Aug 2012 15:06:54 +0200
Message-ID: <87628yrekx.fsf@Rainer.invalid>
References: <54085.1343912461@gregair>
	<BLU0-SMTP2733B4548B78F5621D70714B7CA0@phx.gbl>
	<87haskz8ur.fsf@altern.org>
	<BLU0-SMTP2090D910D0C5C3E52A672B5B7CA0@phx.gbl>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:38193)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1Sxe4d-0000Ll-OI
	for emacs-orgmode@gnu.org; Sat, 04 Aug 2012 09:07:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1Sxe4c-0001Pf-Hc
	for emacs-orgmode@gnu.org; Sat, 04 Aug 2012 09:07:19 -0400
Received: from plane.gmane.org ([80.91.229.3]:51177)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1Sxe4c-0001Pb-AU
	for emacs-orgmode@gnu.org; Sat, 04 Aug 2012 09:07:18 -0400
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1Sxe4Y-0007Vq-Oa
	for emacs-orgmode@gnu.org; Sat, 04 Aug 2012 15:07:14 +0200
Received: from pd9eb493a.dip.t-dialin.net ([217.235.73.58])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <emacs-orgmode@gnu.org>; Sat, 04 Aug 2012 15:07:14 +0200
Received: from Stromeko by pd9eb493a.dip.t-dialin.net with local (Gmexim 0.1
	(Debian)) id 1AlnuQ-0007hv-00
	for <emacs-orgmode@gnu.org>; Sat, 04 Aug 2012 15:07:14 +0200
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: emacs-orgmode@gnu.org

Luis Anaya writes:
> In org-toggle-heading:
> org.el:19364:26:Warning: attempt to let-bind constant `org-outline-regexp-bol'

Are you using Emacs23? Because I don't get these on Emacs24 and they
look positively wierd...

Plus, it's one of those instances where it seems to make a difference in
which order the files get compiled.  If I compile _only_ org.el, I only
get:

In toplevel form:
org.el:4994:1:Error: Symbol's value as variable is void: org-outline-regexp-bol

at the line of (require 'org-element).  Org-element can't require org
since that would become recursive, so it should actually declare those
variables, but that doesn't work since it evaluates some constants at
compile-time and without a (require 'org) these aren't defined yet.
Trying to workaround this issue with eval-and-compile seems possible,
but doesn't really appeal to me.

This seems to be further fallout from moving the require forms in org.el
past the constant and variable definitions (which does make a difference
for Emacs23 vs Emacs24 since the scope rules are now different).
Bastien, what was the problem you were trying to solve there?  In any
case, the interaction between org and org-element needs a serious
overhaul and while we're at it this work should be extended to other
subsystems of org.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves