Eric S Fraga <e.fr...@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 via email to