From mboxrd@z Thu Jan  1 00:00:00 1970
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: org-babel-lob-ingest and debug-init
Date: Thu, 18 Jun 2015 00:05:32 +0200
Message-ID: <87pp4u6leb.fsf@selenimh.access.network>
References: <oluzj3y81t3.fsf@med.uni-goettingen.de>
	<oluvbem80zv.fsf@med.uni-goettingen.de>
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 ([2001:4830:134:3::10]:46351)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mail@nicolasgoaziou.fr>) id 1Z5LRF-0002dY-2B
	for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 18:04:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mail@nicolasgoaziou.fr>) id 1Z5LRE-0008IC-6z
	for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 18:04:04 -0400
Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:58574)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mail@nicolasgoaziou.fr>) id 1Z5LRE-0008I7-1D
	for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 18:04:04 -0400
In-Reply-To: <oluvbem80zv.fsf@med.uni-goettingen.de> (Andreas Leha's message
	of "Wed, 17 Jun 2015 22:43:16 +0100")
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: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org

Hello,

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>> Hi all,
>>
>> I have two lines like this in my .emacs:
>>
>> (org-babel-lob-ingest "~/path/to/library-of-babel.org")
>> (org-babel-lob-ingest "~/path/to/custom-library-of-babel.org")
>>
>>
>> All works fine usually.  But when I start emacs using the --debug-init
>> option, these lines result in
>>
>> ,----
>> | Debugger entered--Lisp error: (error "Before first heading")
>> `----
>>
>> Not sure whether this is relevant, but these are basically my first lines in .emacs:
>>
>> (add-to-list 'load-path "~/path/to/org-mode-from-git/")
>> (require 'org-loaddefs)
>>
>> Why do I get this error?
>>
>> Many thanks in advance,
>> Andreas
>
> Sorry, this was the wrong diagnosis.  I get 'Before first heading' now
> quite often with Org mode files (visiting the file, global visibility
> cycling, etc.)
>
> I got myself into this by upgrading emacs [1].  I also upgraded Org
> mode [2] to no avail.
>
> What am I missing?

Dunno. A backtrace with an uncompiled Org would help.

Regards,

-- 
Nicolas Goaziou