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: Sun, 14 Aug 2022 08:29:32 +0300 Message-ID: <83mtc7l7er.fsf@gnu.org> References: <834jyq29o1.fsf@gnu.org> <92da07bd028e3ede61a6@heytings.org> <47894c57-dd8b-5778-240a-3fa6540e4d37@yandex.ru> <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> <66bbbb9598b42aea3b87@heytings.org> <66bbbb9598e592884ab2@heytings.org> <4d192159-21bc-07f7-7adc-4908303608b0@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9340"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 14 07:30:41 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 1oN6Ct-0002Gd-7S for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 07:30:39 +0200 Original-Received: from localhost ([::1]:55314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oN6Cr-0006l6-QW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 01:30:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oN6CI-0006ky-Ly for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 01:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oN6CI-0002qa-Co for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 01:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oN6CI-0006A2-4M for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 01:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Aug 2022 05:30:02 +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.166045499823639 (code B ref 56682); Sun, 14 Aug 2022 05:30:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 14 Aug 2022 05:29:58 +0000 Original-Received: from localhost ([127.0.0.1]:35636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oN6CD-00069D-QO for submit@debbugs.gnu.org; Sun, 14 Aug 2022 01:29:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oN6CC-000690-9r for 56682@debbugs.gnu.org; Sun, 14 Aug 2022 01:29:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38468) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oN6C6-0002pp-N3; Sun, 14 Aug 2022 01:29:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=igDEzG+vOpfU6A/1s8YXER1cH6cdPXYgW9xiLkMDDU8=; b=gf3Ny6rW2F3g4l27W3LR PI1Rtk13x2pt6QZO//J2cHnBS2rGg68aPRAHdfxRX4xKxTsPjxG/gb978Q5CmlAtdNWvozdx6uRU8 Xr9iANDlkpEO3I+w2IkIipDpmmt1LyVQvVDT2310EWJHipI27z0gSv9VxqQ2N/BgURsBWv7LHLJJW E/FuNv8C99M41HLxuQb0yXaeXbn36qWzY5LI/gyfnr5FM7+Q6adWneXnoigcVxxuQaOaRuT08jmNI 7pGpUVv1nezNPWnYEPXX3kHIIQR9CsxECiVsoNAQUAQxHYIPKptMpNee+YbTmbY3HY/+dCXMX03ex S/1q94Jr6o19LA==; Original-Received: from [87.69.77.57] (port=3769 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 1oN6C5-0008BO-BF; Sun, 14 Aug 2022 01:29:49 -0400 In-Reply-To: <4d192159-21bc-07f7-7adc-4908303608b0@yandex.ru> (message from Dmitry Gutov on Sat, 13 Aug 2022 22:12:42 +0300) 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:239615 Archived-At: > Date: Sat, 13 Aug 2022 22:12:42 +0300 > Cc: 56682@debbugs.gnu.org, Eli Zaretskii , > Stefan Monnier > From: Dmitry Gutov > > > Moreover it does not offer any > > protection against modes which use widen in their font locking > > routines.  Which was the main reason to add the locked narrowing feature. > > The only modes we know that do that (CC Mode) AFAIU, currently _all_ modes widen, because font-lock does. That part was not yet fixed in font-0lock, was it? > are also incompatible with your code. Your "protection" breaks it. For some value of "breaks". And that is a deliberate "breakage": we consider responsive Emacs more important than correct fontification or "accurate" operation of modes such as CC Mode. As was already explained numerous times here, and arguing about that should by now be understood as being futile. People who disagree with that default can customize long-line-threshold to a larger value or to a nil value.