From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Tue, 16 Aug 2022 14:34:03 +0300 Message-ID: <831qtgh178.fsf@gnu.org> References: <92da07bd02941d5537e9@heytings.org> <5308e3b5-a160-17d7-77ee-b1d00acfa20d@yandex.ru> <92da07bd02a6cc861e1a@heytings.org> <837d3lzv8n.fsf@gnu.org> <2c8d6755-cfe2-6559-3fde-3fa30ffb411e@yandex.ru> <83mtcgy44k.fsf@gnu.org> <83k07jx5jn.fsf@gnu.org> <866e510d-a060-7daa-d002-97861d056fa7@yandex.ru> <1144021660321893@iva5-64778ce1ba26.qloud-c.yandex.net> <12348081660379417@sas2-a098efd00d24.qloud-c.yandex.net> <66bbbb95983414e79637@heytings.org> <83wnb9hadb.fsf@gnu.org> <395454dd-7238-c5d0-e924-2f65a186baa7@yandex.ru> <83r11hh4pm.fsf@gnu.org> <3a1232a17b09ce88af40@heytings.org> <83edxghqg2.fsf@gnu.org> <325f95fd2bcc0b666b0b@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13957"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 13:35:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oNur0-0003Um-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 13:35:27 +0200 Original-Received: from localhost ([::1]:38918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNuqy-0004bi-0i for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 07:35:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNuqc-0004Z6-1A for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNuqb-0002Ph-OL for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:35:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNuqb-0006kP-Kv for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 11:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.166064966525889 (code B ref 56682); Tue, 16 Aug 2022 11:35:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 11:34:25 +0000 Original-Received: from localhost ([127.0.0.1]:45128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNuq1-0006jV-28 for submit@debbugs.gnu.org; Tue, 16 Aug 2022 07:34:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNupz-0006jI-Bh for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 07:34:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNups-0002Ky-S2; Tue, 16 Aug 2022 07:34:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TJluce2fZcvAlt93q48OK1N7gasOV9uew2pKz++P/20=; b=YoysqqP0aIsp oWqu9dRCtF2CmY8ThUJA9jnHqOmCVLLtdM5PA3Zii7bos2htXCEiJO0Z//H+Z2gpMzqiV8h+ejzqy ZItoo+DxcSXwPh/Q9s4Zmz6KrqfAMOZ8O0meNmgy5h6LW6VSwvT+huN4/9NZokDKXt2cN4IbhLPHW ssivy8Up7/xGvXIMoC2Adr1pzoaDCh/YEV5mVPWP5nhfwMC8ePdGQersyxHtYRu7yTYZ++ma4hIVj GS+OnIH2D52thb/jx+7C5C0HTabQHlDUL5wMSTiIfIdksDt4I3V9drOjONWOsNtT+ocxuVeoZttT+ 8VpG8o9V+Rl1wYvABMZV0w==; Original-Received: from [87.69.77.57] (port=3586 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNupr-00050L-Ed; Tue, 16 Aug 2022 07:34:16 -0400 In-Reply-To: <325f95fd2bcc0b666b0b@heytings.org> (message from Gregory Heytings on Tue, 16 Aug 2022 08:26:49 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:239902 Archived-At: > Date: Tue, 16 Aug 2022 08:26:49 +0000 > From: Gregory Heytings > cc: 56682@debbugs.gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru > > >> Adding such a variable only two weeks after locked narrowing has been > >> introduced means that modes will have little incentive to adapt to that > >> stronger constraint, if they can "fix" whatever problems that > >> constraint might cause by setting that variable to nil in their > >> initialization hooks. > > > > Modes can do that already by changing long-line-threshold to nil, don't > > they? > > They can indeed, but that variable is documented as "for debugging > purposes" only. That never stopped anyone, IME. > Moreover setting that variable to nil implies that they > deactivate all long line optimizations, which is a higher price to pay. They could do that only locally in one buffer, or temporarily, or just set it to a much larger value, or ... > The way I see this is that Emacs is doing efforts to solve editing > slowdowns as best as possible, but that there is a "last mile" that cannot > be solved without the collaboration from major and minor modes. I'm not worried by that: we do control what code gets installed in the modes that are part of Emacs, so we can always prevent any such modes from (ab)using these variables. And if third-party packages want to do that, in effect harming their users, it's eventually their funeral.