William Denton <will...@williamdenton.org> writes: > On Saturday, March 16th, 2024 at 14:56, Ihor Radchenko <yanta...@posteo.net> > wrote: > >> Did you try setting org-highlight-latex-and-related to nil? > > That did it! Thank you! Org is back to normal, fast and responsive. What > do you make of all this? Was it just something about my individual setup?
> (In fact I now have it set to '(script entities). Both 'latex and 'native > gave me the problems, but this works.) That's because `org-latex-regexps' is a bit too complex for Emacs regexp engine in some cases. For some unfortunate Org files, these regexps may trigger stack overflow while matching. Eventually, we will switch to parser-based fontification, and the problem will be solved. For now, I have no clue how to simplify the problematic regexps without risking regressions. -- 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>