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: Sun, 31 Jul 2022 22:45:38 +0000 Message-ID: <8c7321f2f3f7276883be@heytings.org> References: <83tu706obt.fsf@gnu.org> <83h7306ifa.fsf@gnu.org> <83edy37pul.fsf@gnu.org> <83pmhn55sk.fsf@gnu.org> <65cb7c73fdc753518d35@heytings.org> <83fsii68o3.fsf@gnu.org> <65cb7c73fdf6704d19d5@heytings.org> <835yje62vz.fsf@gnu.org> <65cb7c73fd159efe32af@heytings.org> <83zggq4fgb.fsf@gnu.org> <65cb7c73fd6ca16565e1@heytings.org> <83y1wa4e6q.fsf@gnu.org> <65cb7c73fdbf1de53ea7@heytings.org> <83tu6x4xis.fsf@gnu.org> <87edy14rov.fsf@gnus.org> <83les94qyp.fsf@gnu.org> <871qu14qte.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="6359"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 01 00:47:19 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 1oIHiQ-0001Ph-JZ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Aug 2022 00:47:18 +0200 Original-Received: from localhost ([::1]:59288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIHiP-0007Oj-Aj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Jul 2022 18:47:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIHhD-0007ON-K5 for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 18:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIHhD-0002ss-BO for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 18:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oIHhD-0007to-8B for bug-gnu-emacs@gnu.org; Sun, 31 Jul 2022 18:46:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Jul 2022 22:46:03 +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.165930754230321 (code B ref 56682); Sun, 31 Jul 2022 22:46:03 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 31 Jul 2022 22:45:42 +0000 Original-Received: from localhost ([127.0.0.1]:38776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIHgr-0007sz-PS for submit@debbugs.gnu.org; Sun, 31 Jul 2022 18:45:41 -0400 Original-Received: from heytings.org ([95.142.160.155]:32856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIHgp-0007sp-Rz for 56682@debbugs.gnu.org; Sun, 31 Jul 2022 18:45:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1659307538; bh=R6FJ4laXMGez4o3ZDRj7T4T3PwXrb3LkpeJIhw5JF30=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=BbsBUHwd8a6it//4nA0RU0iZxJScrUbFky/D+8VN5DpmwGfpXO68qYycWYXYToBmi jlj6vXqbJuBi7H2GnmGP+ccmm9uBd+EHeC92aaFmDvCA9OHz5eIL20TTFiymYz0Nrx aLhRbGl9RCsGmGlTHrLIXpoi4THPwsmNqLSA3qfSOWb6duF8JeR+EZeFbZqp6o0NTc b0XTI/pksvP5b0YqqHRzDtlylQdOSMg1uFIik3kgBlzB5FP1NX5PYavTe5qH423nnc ShpOYJTiN5WThi8Z5EmHy6hNyJVV71AYXyB1PQdrJSDzaf/QYyzRBlMjOUfvttApy6 y8EPYSNJGLa2Q== In-Reply-To: <871qu14qte.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:238372 Archived-At: >> IOW, the issue for which I wanted to hear your opinion was whether you >> think it's okay to preclude, in a buffer with long lines, all >> pre/post-command-hooks from accessing the entire buffer. > > Yes, I think that's reasonable. There will inevitably be many modes out > there that'll wedge themselves in the presence of gargantuan lines, and > limiting these hooks is a reasonable line of defence. > I've now done so, in a new branch feature/long-lines-improvements (to avoid breaking master). A nice bonus is that it is not necessary anymore to disable flyspell-mode or flymake-mode for example, even in huge files.