From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: user-error: Not at a block -- how to debug? Date: Mon, 15 Sep 2014 12:32:57 +0200 Message-ID: <87sijt2mxy.fsf@gmail.com> References: <87egvd2p77.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTTay-0003Nq-6X for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 06:33:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTTas-0003AL-B3 for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 06:33:20 -0400 Received: from plane.gmane.org ([80.91.229.3]:56441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTTas-0003AD-5q for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 06:33:14 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XTTar-0002Pt-87 for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 12:33:13 +0200 Received: from g231110061.adsl.alicedsl.de ([92.231.110.61]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2014 12:33:13 +0200 Received: from tjolitz by g231110061.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2014 12:33:13 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 Eric S Fraga writes: Hello, > all of a sudden, for one of my (rather large) org files, I get an error: > > user-error: Not at a block > > I note that this error message appears in three places in > org.el. However, I cannot figure out why this is being incurred and > debug-on-error does not get invoked when this error occurs. > > Can anybody please suggest how to debug this? I have tried going > through the file but nothing is obviously wrong with the > structure. Annoyingly, this error stops org-mode-hook from executing so > my environment is not what I expect. Just guessing: you do some visibility cycling when opening up the org-buffer (open in overview or so)? Maybe edebug `org-hide-block-toggle`? Seems the most likely candidate for me ... -- cheers, Thorsten