emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: user-error: Not at a block -- how to debug?
Date: Mon, 15 Sep 2014 12:32:57 +0200	[thread overview]
Message-ID: <87sijt2mxy.fsf@gmail.com> (raw)
In-Reply-To: 87egvd2p77.fsf@pinto.chemeng.ucl.ac.uk

Eric S Fraga <e.fraga@ucl.ac.uk> 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

  reply	other threads:[~2014-09-15 10:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-15  9:44 user-error: Not at a block -- how to debug? Eric S Fraga
2014-09-15 10:32 ` Thorsten Jolitz [this message]
2014-09-15 10:45   ` Eric S Fraga
2014-09-15 11:35     ` Nicolas Goaziou
2014-09-15 16:02       ` Eric S Fraga
2014-09-15 16:09       ` Eric S Fraga
2014-09-15 18:28         ` Nicolas Goaziou
2014-09-15 10:36 ` Eric S Fraga, Eric S Fraga
2014-09-15 10:53 ` Andrea Rossetti
2014-09-15 16:03   ` Eric S Fraga

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=87sijt2mxy.fsf@gmail.com \
    --to=tjolitz@gmail.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).