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, 31 Jul 2022 10:48:28 +0300 Message-ID: <83pmhl4t9v.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <8a3eaeef01be5bfaa5ef@heytings.org> <05388e8d8812bfa3695d@heytings.org> <83v8rf5894.fsf@gnu.org> <65cb7c73fd4a999cca00@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 31 09:49:18 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 1oI3hO-00083J-L4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Jul 2022 09:49:18 +0200 Original-Received: from localhost ([::1]:60004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oI3hN-0001O2-4G for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Jul 2022 03:49:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI3h9-0001Nf-1b for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 03:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oI3h8-0001o2-Oo for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 03:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oI3h8-0005IO-Fb for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 03:49: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, 31 Jul 2022 07:49: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.165925373420341 (code B ref 56682); Sun, 31 Jul 2022 07:49:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 31 Jul 2022 07:48:54 +0000 Original-Received: from localhost ([127.0.0.1]:36327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oI3gy-0005I0-Ms for submit@debbugs.gnu.org; Sun, 31 Jul 2022 03:48:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oI3gu-0005He-3A for 56682@debbugs.gnu.org; Sun, 31 Jul 2022 03:48:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI3go-0001n4-JT; Sun, 31 Jul 2022 03:48:42 -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=sq//szpjX19f4WS656yZk1SMuiIQL6422wCj89KZ1zk=; b=hvsTm4KGWgew CaCyIQvjKDrQkaWkYFcXRTj91ugGhCTdV9MF+SNExtLOpjozQ6t1Wvfh0nN1hT9/L9NjuT7/zL99v rQg4HtAdmEhJ6WhX7/0qu8ZZeczR0JyEdUOZS9YvkRueJKsP42uyqqioXhTBUewzEAe1k0jiK3tLS qC1fk5bcXD+y4cFXGZSHKmOZNYARXI7rcmMyNznBqu2Q6LTi8L78BP1q/GDo2//9xc1fbCMruqvEp j0F24P6iQoBnNWp/pFDmvDAM1rMCY2jfXWEd7+mCinneug7DPhXt5TjK/7L1kO8F+6/KYQ5Kv2k/D dxo2MefhzrlMxSPyxpv/jQ==; Original-Received: from [87.69.77.57] (port=1120 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 1oI3gn-0005GD-S6; Sun, 31 Jul 2022 03:48:42 -0400 In-Reply-To: (message from Stefan Monnier on Sun, 31 Jul 2022 03:25:46 -0400) 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:238319 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , 56682@debbugs.gnu.org > Date: Sun, 31 Jul 2022 03:25:46 -0400 > > How 'bout we do the reverse then: set the narrowing, but let-bind > a variable to indicate that we're inside a line-length-induced > narrowing, together with the previous narrowing bounds, so jit-lock or > its clients can undo the narrowing when needed? I'd rather prefer an extension of 'widen' that would be able to undo the locked narrowing "when needed". That way, jit-lock clients should actually do something to request that, instead of letting them keep the current code that widens whenever they feel like it.