"Fraga, Eric" <e.fr...@ucl.ac.uk> writes: > this did the trick. However, interestingly, the error was a src block > that ended with > > +end_src > > (somehow the "#" got deleted). What's interesting is that org continued > to see this as a src block. I was having some unreproducible problems > with the element cache which may have had something to do with this.
I recommend setting org-element--cache-self-verify to 'backtrace and org-element--cache-self-verify-frequency to 1.0. Then, Org will self-check the cache consistency and generate a backtrace when a problem is detected. > PS - is there a way to clear the cache completely prior to starting > Emacs? You can disable storing cache between Emacs sessions using `org-element-cache-persistent'. Or you can simply delete `org-persist-directory' before starting. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>