From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74281: 30.0.91; font-lock mode hangs on scrolling large Scheme file Date: Sun, 29 Dec 2024 13:01:14 -0500 Message-ID: References: <8734k0cs1u.fsf@subvertising.org> <86zfm2jjbo.fsf@gnu.org> <865xo59hhm.fsf@gnu.org> <86a5cfsr6a.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33859"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: divya@subvertising.org, 74281@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 29 19:02:31 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 1tRxcV-0008hR-7G for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Dec 2024 19:02:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRxcG-0002ZF-Kj; Sun, 29 Dec 2024 13:02:16 -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 1tRxc2-0002YI-M4 for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 13:02:08 -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 1tRxc2-0001bn-4E for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 13:02:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=4SDpFaY3NAo3TY2ZSHLt3PGlAqHQdAkMWqTI19uzSHc=; b=KQ74QbkwXtpLkW+zN7sQ6ezUgLps5EEihUlWu572rNwFQ2yWjVLJ5ncE1gOBQemtAOT0Bb97DJgo49sA8wAhGbVecLXq2TUZuotIdiekl2syKoXMYwGxMHEj4sOuy/vzXy21HFZOAsji7+HbqRhDwoSn6QQp016j8X4XvzfBtWy0UyC1pICXSAguKycESHJ61lzROTJLgvmdckYipYsmce3K1fEQpZ4wxGfZtCXR47HAgvcADOXVPj2JffenQtso7cMMjOKTbc81oVlghLle0urb+t3Acz5fftKJOl/p92DO+8WRapUFB4d/vc9ipFnzySwCGArtImkfusXCGZkmLw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRxc1-0004rx-Vo for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 13:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Dec 2024 18:02:01 +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.173549528518673 (code B ref 74281); Sun, 29 Dec 2024 18:02:01 +0000 Original-Received: (at 74281) by debbugs.gnu.org; 29 Dec 2024 18:01:25 +0000 Original-Received: from localhost ([127.0.0.1]:56082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRxbQ-0004r6-Lf for submit@debbugs.gnu.org; Sun, 29 Dec 2024 13:01:24 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:32500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRxbP-0004qu-5B for 74281@debbugs.gnu.org; Sun, 29 Dec 2024 13:01:23 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9D5DE441701; Sun, 29 Dec 2024 13:01:15 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1735495274; bh=IO/VpoL1Kpk8eZYIr/a1F2+tbdG6yll/Sgtyaa0q7Ys=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=bPd5v8Nb3AEi5gd4Zm9sJu7a6B9DwlxLJ1LOdDz1AwJj3794NVY4Gk8X4Tu1JgHmc YWTfFWjUg06ph3pvLas/LsKp52nNgdLXPAyWddGwu3GbjnTcR2j7oOm6dGi6syYAWO Jdvdh/uVisnnfsoR4B/h0gA8UcEh2+P62NUqbB1C99XJmnCFNx+VMpcTl3O2XNiQXI Wz+i9O3VbWUmd13/C0CuR9kq8PaFtNlMfMkr4CxCNQ/sX4vbIwUgJH+BHrH8bFrj4G cVVjoONOay+pGWhENjCCWo8Ycq6azFiSkJZUvSqTBFGgtsQAdkvZmkcv0N8D3a68FV +kFb92HXA3HbQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9682A44166F; Sun, 29 Dec 2024 13:01:14 -0500 (EST) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 674CB12022E; Sun, 29 Dec 2024 13:01:14 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Sun, 29 Dec 2024 10:20:19 -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:297956 Archived-At: >>> > Ping! Divya, could you please try Stefan's suggestions and report >>> > back? >>> FWIW, I think the change is an improvement in any case, so we could >>> install it. Since it's in a "core" file, it might be too risky for >>> `emacs-30`, so I'm thinking of installing it in `master`, WDYT? >> Fine by me, thanks. > Pushed to `master`, thanks. 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))