emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Things got very slow: profiler output


From: Ihor Radchenko
Subject: Re: Things got very slow: profiler output
Date: Sun, 17 Mar 2024 19:33:04 +0000

William Denton <william@williamdenton.org> writes:

> On Saturday, March 16th, 2024 at 14:56, Ihor Radchenko <yantar92@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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]