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#74281: 30.0.91; font-lock mode hangs on scrolling large Scheme file Date: Sun, 29 Dec 2024 20:58:31 +0200 Message-ID: <86v7v2pb8o.fsf@gnu.org> References: <8734k0cs1u.fsf@subvertising.org> <86zfm2jjbo.fsf@gnu.org> <865xo59hhm.fsf@gnu.org> <86a5cfsr6a.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26700"; mail-complaints-to="usenet@ciao.gmane.io" Cc: divya@subvertising.org, 74281@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 29 19:59:26 2024 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 1tRyVa-0006pD-Lj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Dec 2024 19:59:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRyVU-0001hi-9n; Sun, 29 Dec 2024 13:59:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRyVD-0001hG-9r for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 13:59:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRyVC-0007Ht-PX for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 13:59:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=f20lHdyn4bV1ZZfupQb+fIu2DIWSmqK6LcgVd7DKFJI=; b=Gv7WCjKEzCbK1d1Dq0JL6/eO1UdCIx89a6VdRJjm69tVu1LaG/ZlB7mkouCGgllILVgVQiiVH9DmeVx4c1bOh56L6CgNcCYqg8g5RhiC/eEMK80poPOTHvGUfT9ByiHa8cMvHZ8murw+dYp6Rfm1aw/TjVtImfHNzfxZAefwmVxDv/ALLXqZGNrmh1Q1nypPU/FKjkblLtPL6OZrXlYPs6Hy6bdQJvcUn89g1rBkEBLb7IahS7t0GMj/h9afPngoXUTJYat0usadcqsrNRtXf+6Zej2zjcE8cqHQlmTnKD3d9aFdzDsKRsb17uAAgO8t40l0r0n62pUmOGPT8R3/sA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRyVC-0007c4-LJ for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 13:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Dec 2024 18:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74281 X-GNU-PR-Package: emacs Original-Received: via spool by 74281-submit@debbugs.gnu.org id=B74281.173549872529238 (code B ref 74281); Sun, 29 Dec 2024 18:59:02 +0000 Original-Received: (at 74281) by debbugs.gnu.org; 29 Dec 2024 18:58:45 +0000 Original-Received: from localhost ([127.0.0.1]:56176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRyUu-0007bW-K4 for submit@debbugs.gnu.org; Sun, 29 Dec 2024 13:58:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRyUs-0007bI-4U for 74281@debbugs.gnu.org; Sun, 29 Dec 2024 13:58:43 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRyUm-0007Gw-84; Sun, 29 Dec 2024 13:58:36 -0500 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=f20lHdyn4bV1ZZfupQb+fIu2DIWSmqK6LcgVd7DKFJI=; b=VhgBf2FUyD2R kwIsyaxffnHKEFXedykWiwqVWg/oVyY/feEn/cAj4xv3f1UrOOjwQfBLLQ1JcHCpIBzI48czWDlCN OqBjsNvsaOLuUUiP1QR/MjSpdSTd0JHjrjurin2aus95DN9fVTZztadksilW8tWI1PKlan5EsUshx XMXHPDEEmQ9k4XjgQpX8Jv0z5s55aNRlaYksUWZgQJrcS43wRjuCp25tuGJh6gJXQrHXZv8w0bwTf CEgKVuD/WKTLsakG80aBtPIDxoCVjhTBXgTo7sMy0xYz4HW7CccAsASiyayoj3oJ5CYUdryzmF5hl H1Y12TXvBDWhXNrgnXeTIQ==; In-Reply-To: (message from Stefan Monnier on Sun, 29 Dec 2024 13:01:14 -0500) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297961 Archived-At: > From: Stefan Monnier > Cc: divya@subvertising.org, 74281@debbugs.gnu.org > Date: Sun, 29 Dec 2024 13:01:14 -0500 > > BTW, if we want something on `emacs-30`, we could go with a patch like > the one below. > > > Stefan > > > diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el > index a0f922f279c..c46422b7218 100644 > --- a/lisp/progmodes/scheme.el > +++ b/lisp/progmodes/scheme.el > @@ -201,7 +201,10 @@ scheme-mode-variables > scheme-font-lock-keywords-1 scheme-font-lock-keywords-2) > nil t (("+-*/.<>=!?$%_&~^:" . "w") (?#. "w 14")) > beginning-of-defun > - (font-lock-mark-block-function . mark-defun))) > + (font-lock-mark-block-function . mark-defun) > + ;; The (?#. "w 14") above causes font-lock to incorrectly > + ;; set `font-lock--syntax-table-affects-ppss' to t. > + (font-lock--syntax-table-affects-ppss . nil))) > (setq-local prettify-symbols-alist lisp-prettify-symbols-alist) > (setq-local lisp-doc-string-elt-property 'scheme-doc-string-elt)) What does it do, and what potential harm could happen if we install this?