From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Mon, 25 Jul 2022 20:59:24 +0000 Message-ID: <8a3eaeef018dadf713c8@heytings.org> References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <83v8rpjkyf.fsf@gnu.org> <87k0858awa.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19896"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 25 23:00:46 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 1oG5C2-0004wx-54 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Jul 2022 23:00:46 +0200 Original-Received: from localhost ([::1]:41986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oG5C0-0005TJ-TV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Jul 2022 17:00:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oG5BQ-0005Pc-RV for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 17:00:13 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oG5BK-0004i7-45 for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 17:00:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oG5BJ-0004RC-TA for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 17:00:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jul 2022 21:00: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.165878276916981 (code B ref 56682); Mon, 25 Jul 2022 21:00:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 25 Jul 2022 20:59:29 +0000 Original-Received: from localhost ([127.0.0.1]:51552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oG5An-0004Pp-KG for submit@debbugs.gnu.org; Mon, 25 Jul 2022 16:59:29 -0400 Original-Received: from heytings.org ([95.142.160.155]:52562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oG5Al-0004Pe-CK for 56682@debbugs.gnu.org; Mon, 25 Jul 2022 16:59:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1658782765; bh=daMFLUgllpjL3ol/1fOwhjP/prBYuJurnYM9Gcu4Nig=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=SSKT5sXAllMhvYSSScN7306lMbWuUUexp09FBzbbcTwMCIJxKJwtEgLDqnTjVIYnW q0DrZLvJEAUK02VxkNpzXVruJqmj2x6S3RtUhC2XvKrtsMamVi/YrHOAj39vqW2wP8 Y/Pb2+TA2PRYh2zTdRrGuyPhYdJKpleMGWM/kVLE8ud7UfDwWPMtJ4FwoEs2Hwc6g0 ikVQNcjPFROwhR20jd9l/QKtj7DuHRxBHYN3p0Od0j/CNTgDx2inYMxsSi7DkP00gU Fzl8rV0JTug2+sTQ7pAtRHiOLPZlPlyee1BptBsavq8LTkr1nWtJJlVY461h25wOnL +yRFsk+ewN9kA== In-Reply-To: <87k0858awa.fsf@gnus.org> 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:237907 Archived-At: > > This reminds me of something I meant to mention -- Stefan M. once > proposed that there should be two kinds of narrowing (I think?). The > first is the one that the user sets with `C-x n n', which says "the user > is only interested in this bit of the buffer", but programs are > "allowed" to remove that restriction when doing stuff (like font > locking). The second type should be a strict one, where modes are not > allowed to widen the region. > > Looking briefly at Gregory's new branch, it seems like that (sort of) > introduces this idea, but in a non-explicit way (i.e., by having an > inhibit-widen variable). > Thanks for the idea! I think this could be useful in other contexts, so I'll try to implement that.