From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OIgjMPX0lmPQTwAAbAwnHQ (envelope-from ) for ; Mon, 12 Dec 2022 10:31:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +AX1L/X0lmPf3gAAauVa8A (envelope-from ) for ; Mon, 12 Dec 2022 10:31:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7D9C82456E for ; Mon, 12 Dec 2022 10:31:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4f8w-0005ci-3m; Mon, 12 Dec 2022 04:30:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4f8t-0005bO-1f for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 04:30:35 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4f8q-00023V-Qj for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 04:30:34 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F294E240101 for ; Mon, 12 Dec 2022 10:30:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670837430; bh=6Ee9gRCPSENvIwxDctBjBjK/QEDEM6+5Rv1N7qhqSiI=; h=From:To:Cc:Subject:Date:From; b=EwJS3VNs/rMRdLz7GvPgQyTHQpyepNMDEc+oLiSG53n5hwawZXqPIDA0LNyeSKZkU ltNM4wrUDku6kcZYtKs4HrItRUL+H4jem0FyGcYWDmp39QwCCa8DoZLyIg6BJ9gG8q ODkYuBN7WjA0H0LFNDDoF53/GyUyrLAgwo/qOkGLwnxderIEx7GNJwygIdHoyPa1Pg rmqNFL7OlsKzMKuNY/3n1h5nOTnRAfcuZy0CPT4y4M91unxoPVWnjIgrJOjJSeSE/Y FBVWqlEjezZq4nQ5mCRNLqBUZqm6KATch0SbL8fvce11BXuZXzlRk7g+xOhlcuoTEE M6gnAAFKreZEg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NVxDz6DsZz6tr3; Mon, 12 Dec 2022 10:30:27 +0100 (CET) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= 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) In-Reply-To: References: <87y1rjjqk0.fsf@localhost> <87k02zr1xm.fsf@localhost> <87tu22l267.fsf@localhost> Date: Mon, 12 Dec 2022 09:30:27 +0000 Message-ID: <87tu21hsuk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670837493; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dCyfgxjo4eg0m8VOx9rml8H3wN+Ik7A7SAPzYQde+3M=; b=m1cvJ4P0DDAkY0JX7kH92EIU5idbJ3W0kzGSJvRLqpEj8w2U833w1K/nY6ffGpNDHW9eB2 fJFH1pIRYEiFLK9e/kR8AIY+ehYxSj49FWyMQP1FTvQ8MVMt6PE4gV/1Iwal5gjRV31NdX Ug0qEl3DRBgro2rQYmPNNKHXF2t2/A3winfP8M0g88XR9LO/PZ8SWdhYYiQDzQ3Ds6uI3n JrY79m5neANV8QGxqc5oTxsYJBaUfC3gYFWBEPh/LGAsn8KossqP/D5GEZ3wZqv4IDzxXB lvHyKDlpI5m0GB112Gpzx3ZeDJHfWkChX+OmEaAcbuFVQZBL3j0Z9NGvD3/YHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EwJS3VNs; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670837493; a=rsa-sha256; cv=none; b=fgGZvP+NPP0AwKslXpDLmxZjgYQILYb2eVhLhcwOTY3nWRinF3c0KI/EJKo1HlOryKIXAd BnQr4krFr6kYUldPYPT+zLs2ock7Yn7VhB5L0hKroa3Z1XjhWPrN/hV1SqisPspK1L2LAI xqfHz7gd/BpL6WqPyA1GG3h+ppLOj1EOYkHjTEXYfAFj8gybz0CxuX9vUZWtG/zlQWO2bB PrGM3EbfH/ZwBPu4cYezlA0Yf7iur4tJYG6K5b8Nedsh0wjbVGnirWyfewR78Erz86Wcu7 dHegRjy9KAUAqBUkl9XE/M6AZOQfJbNebuLerlw0/QAlP/Cj9RpgGqNBlXNI3w== X-Migadu-Spam-Score: -11.15 X-Spam-Score: -11.15 X-Migadu-Queue-Id: 7D9C82456E X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EwJS3VNs; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: /89bRB7tjZd9 Rudolf Adamkovi=C4=8D 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 >=20=20=20=20 > 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. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at