emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: arozbiz@gmail.com, emacs-orgmode@gnu.org
Subject: Re: Flyspell process called frequently when using Org export (was: Flyspell causes severe slowdown when manipulating footnotes)
Date: Mon, 12 Dec 2022 09:30:27 +0000	[thread overview]
Message-ID: <87tu21hsuk.fsf@localhost> (raw)
In-Reply-To: <m28rje7x6g.fsf@me.com>

Rudolf Adamkovič <salutis@me.com> 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 'prog-mode-hook #'flyspell-prog-mode)
>
> 3. Create a new Org file
>
>    # LocalWords: xyz
>    
>    Hello there!
>
> 4. Export the file to HTML
>
> Expected:
>
>   No Ispell process started on export.
>
> Actual:
>
>   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' around `set-auto-mode', but it is not
honoured by `mhtml-mode'. I guess we can report this as Emacs bug.

> P.S. I also see Org starting Ispell over and over when holding down
> `C-v' in a long document that contains lots of scattered `LocalWords'
> comments.

This sounds like a normal Ispell behaviour.

-- 
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	other threads:[~2022-12-12  9:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-06  1:34 Flyspell causes severe slowdown when manipulating footnotes arozbiz
2022-12-07 13:23 ` Ihor Radchenko
2022-12-08 14:12   ` arozbiz
2022-12-10 10:24     ` Ihor Radchenko
2022-12-10 23:43       ` Rudolf Adamkovič
2022-12-11  9:28         ` Flyspell process called frequently when using Org export (was: Flyspell causes severe slowdown when manipulating footnotes) Ihor Radchenko
2022-12-11 15:54           ` Rudolf Adamkovič
2022-12-12  9:30             ` Ihor Radchenko [this message]
2024-05-11 10:06               ` Ihor Radchenko
2022-12-11 22:58       ` Flyspell causes severe slowdown when manipulating footnotes arozbiz
2022-12-12  9:32         ` Ihor Radchenko
2022-12-12 14:04           ` arozbiz
2022-12-12 14:09             ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tu21hsuk.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=arozbiz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=salutis@me.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).