Re: Flyspell process called frequently when using Org export (was: Flyspell causes severe slowdown when manipulating footnotes)

2024-05-11 Thread Ihor Radchenko
Ihor Radchenko writes: >> A new Ispell process started on export. > ... > Confirmed. > This is because `org-html-final-function' uses `mhtml-mode' to indent the > resulting html file. `mhtml-mode' unconditionally runs `prog-mode-hook' > thus starting Ispell. > > We may try `delay-mode-hooks'

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-12 Thread Ihor Radchenko
aroz...@gmail.com writes: > Happy to. What is the best way to temporarily downgrade to 9.5.5? I install > Emacs through this Arch AUR > package, which installs the latest version of Org automatically. If you have Emacs 28, Org 9.5.5 is built-in

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-12 Thread arozbiz
Happy to. What is the best way to temporarily downgrade to 9.5.5? I install Emacs through this Arch AUR package, which installs the latest version of Org automatically. Best, Alan On Mon, Dec 12, 2022 at 3:32 AM Ihor Radchenko wrote: >

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-12 Thread Ihor Radchenko
aroz...@gmail.com writes: > Thanks. It definitely helps, but it's still quite slow. What's made the > biggest difference is is advising the relevant functions to turn flyspell > off beforehand and then turn it back on. Sure, but it is not going to help others. Could you try to produce the

Re: Flyspell process called frequently when using Org export (was: Flyspell causes severe slowdown when manipulating footnotes)

2022-12-12 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Upon further investigation, Org frequently starts and kills the > spellchecker when the document contains `LocalWords' comments. > > 1. Start Emacs > >emacs -Q > > 2. Configure Flyspell > >(add-hook 'text-mode-hook #'flyspell-mode) >(add-hook

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-11 Thread arozbiz
Thanks. It definitely helps, but it's still quite slow. What's made the biggest difference is is advising the relevant functions to turn flyspell off beforehand and then turn it back on. ``` (defun azr/org-footnote-disable-flyspell (orig-fun args) (flyspell-mode -1) (apply orig-fun args)

Re: Flyspell process called frequently when using Org export (was: Flyspell causes severe slowdown when manipulating footnotes)

2022-12-11 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Rudolf Adamkovič writes: > >> Unrelated to the footnotes mentioned above > > Note how I change the email subject to mark a new topic. > In Emacs, it is M-x message-change-subject TIL! Thank you. > I am unable to reproduce using the latest Org. I apologize for not

Flyspell process called frequently when using Org export (was: Flyspell causes severe slowdown when manipulating footnotes)

2022-12-11 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Unrelated to the footnotes mentioned above Note how I change the email subject to mark a new topic. In Emacs, it is M-x message-change-subject > ... , but I noticed that Org > starts and kills Ispell all the time. I see the following messages > repeated over and

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-10 Thread Rudolf Adamkovič
Ihor Radchenko writes: > I just pushed a slight optimization to the footnote sorting code. Unrelated to the footnotes mentioned above, but I noticed that Org starts and kills Ispell all the time. I see the following messages repeated over and over when working with Org: Starting new Ispell

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-10 Thread Ihor Radchenko
aroz...@gmail.com writes: > Thanks Ihor for the response. Unfortunately, setting > org-element--cache-self-verify to nil didn't work. Profile report attached. Thanks! I just pushed a slight optimization to the footnote sorting code. Can you try again using the latest main?

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-08 Thread arozbiz
Thanks Ihor for the response. Unfortunately, setting org-element--cache-self-verify to nil didn't work. Profile report attached. On Wed, Dec 7, 2022 at 7:23 AM Ihor Radchenko wrote: > aroz...@gmail.com writes: > > > I just upgraded to Org 9.6 and I've noticed that having flyspell-mode > >

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-07 Thread Ihor Radchenko
aroz...@gmail.com writes: > I just upgraded to Org 9.6 and I've noticed that having flyspell-mode > turned on causes very large slowdowns when adding or deleting footnotes in > an org file with lots of footnotes (e.g., more than 200, which is common > for the academic articles that I use org

Flyspell causes severe slowdown when manipulating footnotes

2022-12-05 Thread arozbiz
I just upgraded to Org 9.6 and I've noticed that having flyspell-mode turned on causes very large slowdowns when adding or deleting footnotes in an org file with lots of footnotes (e.g., more than 200, which is common for the academic articles that I use org for). Any ideas for what might be