From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 mAnzBiLMNWNJ5AAAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 18:47:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WLDSBiLMNWPkZAAA9RJhRA (envelope-from ) for ; Thu, 29 Sep 2022 18:47:30 +0200 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 CC2E51C4F1 for ; Thu, 29 Sep 2022 18:47:29 +0200 (CEST) Received: from localhost ([::1]:38426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odwh6-0004Kf-Sv for larch@yhetil.org; Thu, 29 Sep 2022 12:47:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oduNc-0005Ql-PP for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 10:19:14 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:42534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oduNW-0003W5-GE for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 10:19:11 -0400 Received: by mail-pf1-x433.google.com with SMTP id b23so1565040pfp.9 for ; Thu, 29 Sep 2022 07:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=7RGNLyqtMHbqTeyti4OvY1zeSEC8dO1ij/mLoLaOAAg=; b=MdCwH8cRKWC9zrYvEPz3XZKosNtPDI+V8trdntiiANtCu7QnA2dHaotPxoeJeDtwfA xJEgaW2rA6yhTKhErwOAz6jMYjdqDMDsrfag6tn3Avj/Rc2yIQ+sa9cyZZH74o1q9KXY Q1Ypq+jJI5qoJIwgZ0KH2qFKfAz6JPrF7v7sguPuFnmyo/j9wEMerKgHA7zC6OylOGKZ jjf1PjV6m+0LISw5phJlaT4yRiLSgqptYC4fIvm1uF8NwnOUfJU7PuUqUOdHW8EIYnoF ZU7/jciD5EMvEPehTi7LZVltSY6Kr8IfCTicJTQDHFl/DM2Zd9ASPi8OYxV76Rxa21b2 BnJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=7RGNLyqtMHbqTeyti4OvY1zeSEC8dO1ij/mLoLaOAAg=; b=7S+xvCdHbLw6+XWs98D66YqfrHaH2nNE9aqHM4iE7JQRTxrnGIJ6ZPkpkEenjphX0Y rpnS0VRh08UFqiZ+oz/5jTquy9eynfNQ3RKjimqBtwH/AQSK84Wj8KU7vgl59zR0cMlo TjJnyEKSFHcjfSMJb+fBkRYpflIxRWzsquHAq24rSanAKnAbtrGPwux1KzTDraZJ9X4h tOLoUP1EETv+hjOIhEcOXzwRnU8hbxkyvE6NZTPFYeKe68vRXHF+ge1trhZNVGOGW+79 2rgnZBPW4D64JG0ANq0BWY6yRbhYFV9F1JLB8uYA/mdgWDoMZnxuwebZMjgR8GavQ43e Xzqg== X-Gm-Message-State: ACrzQf04PSNgVh4rLaxZ7+sOMnZ2lQAfPPSKxsk+qtOyWRPtB8Bw9Aw5 s4JkiGcQMEHoRAPkCCJ2urg= X-Google-Smtp-Source: AMsMyM4aql2t287SBWoex7n3c//g2pCof7C6BhU9mLHKSdko9zXcMzh1yTsDaBRJB1cW7+M48dC/lA== X-Received: by 2002:a05:6a00:2449:b0:528:3a29:e79d with SMTP id d9-20020a056a00244900b005283a29e79dmr3682553pfj.39.1664461145011; Thu, 29 Sep 2022 07:19:05 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id t18-20020a17090340d200b0017315b11bb8sm5898486pld.213.2022.09.29.07.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 07:19:04 -0700 (PDT) From: Ihor Radchenko To: Luca Ferrari Cc: emacs-org list Subject: Re: emacs really slow when inserting a new source code block In-Reply-To: References: <871qry7nmg.fsf@localhost> <875yhaf9mw.fsf@localhost> <87h70tgddk.fsf@localhost> <874jwrfxm2.fsf@localhost> <87czbeap8b.fsf@localhost> Date: Thu, 29 Sep 2022 22:19:55 +0800 Message-ID: <87k05m5kl0.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=yantar92@gmail.com; helo=mail-pf1-x433.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664470050; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7RGNLyqtMHbqTeyti4OvY1zeSEC8dO1ij/mLoLaOAAg=; b=Ubj5qfJN424S0+s/p7/UqcAFUsKzNxcy17+JqermT/KwwjA7845MMHp0IOWyHj/uFxNKJ0 oGC8/0Z5whXD2brAy35UTFK3DfcW7oLtKEvuTOmGUntfkFrplG8KHCJN37xQXlcm+JH2jB 3M3ln9q7cJjt1fJWlBWErGkOJBqusV4P/sjsZl+rQY3bvmIbdXzm5QwTPdrSDvbPvEljKO 0rhg745UWKwG/QRMqNkN4i5aD1ycTyTXUZz8w1jifLnGO0tXJ11KTgRjyylrNq1zpiG8bX pm5eUImx77xwuzHeagHUxApr0e7Tq+gijUcn34odAHfmWfahxKaq3nDUTUD4dA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664470050; a=rsa-sha256; cv=none; b=HdEnOkZXcZij7A3nt1sL8CAzlBEJcei7u/R2SWQUix7nWx7RACFiqNK+Hr6NhSIJt9kGL5 SzgoA0/9+QEoaaX3JTHGxBxd5yNsCPMsFVI+AAqoi35S/RasPeA9LJ70fWGtv39WPQfnWn 6ptQuieaoGrfKhCdbieJHGaysSMCYW7tpycXEgtxwRNnsxvgWvHh+BgfizKTmmFCfdNIps ikjuKtb/+5Xq884bVcCfSKfOKGp/RyfKD3efLmFbnuJTbjtBtTB1Wcg5FrZLVUdMyRNIJd Nv5BVIu886jK8ebd5GH7U0tbGvFfJwrWO4LLB9hsPxtDP/jZ6NTzfiKu0NL1iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MdCwH8cR; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -1.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MdCwH8cR; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: CC2E51C4F1 X-Spam-Score: -1.84 X-Migadu-Scanner: scn1.migadu.com X-TUID: yLe1gfXPa1sg Luca Ferrari writes: >> Do you have any flyspell-related configuration in your config? > > I have: > (flyspell-mode +1) > (global-flycheck-mode +1) Hmm. Can you try the development version of Org? If you are just using a bare flyspell-mode, it generally gets slow on large Org files. We have made a number of improvements in this area on development branch. > By the way, even if off-topic, is there a way to "dump" configuration > for a specific set of modes? Fromwithin emacs, how can I get a dump of > all flyspell related settings (if there's a way)? Usually, you can just re-search for appropriate Elisp variable prefix. Or, if you use customize interface, saving customization will dump all the non-default settings into your init.el Or you can bisect the config to hunt for less obvious issues using https://github.com/Malabarba/elisp-bug-hunter -- Ihor Radchenko, 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