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: Mon, 30 Dec 2024 16:06:06 -0500 Message-ID: References: <8734k0cs1u.fsf@subvertising.org> <86zfm2jjbo.fsf@gnu.org> <865xo59hhm.fsf@gnu.org> <86a5cfsr6a.fsf@gnu.org> <66CF0D14-5C95-47C8-B96E-FB1DEE0BD065@subvertising.org> <6A6B56C8-2635-4FDA-82F6-A63BD22238CC@subvertising.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="32553"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eliz@gnu.org, 74281@debbugs.gnu.org To: Divya Ranjan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 22:07:45 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 1tSMzI-0008Ja-MU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 22:07:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSMyq-0000Hy-DD; Mon, 30 Dec 2024 16:07: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 1tSMyc-0000HM-Py for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 16:07:04 -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 1tSMyc-00046a-HB for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 16:07: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=EJmkxsWCuRdwnZp0pbKHle+fNentDnKLn8Hvbiglmp4=; b=W/JBmJCmS7lIlO9CjkvCuU5DELClYRrQ7knWrQ7ec7bLijcaad89rkOYgEp4MssEAcrCO7Ro+q9Gs3Hefi9yIsHE4aeSwUBtChFeYIV7BjaXTi6LCWGsKr3rgbK4xMidxReWRq6kkjsigVdd9E5FfqGMS2DSpslz0xrdWkPUBLO/hKeavjcotgzM2p5GCJv4DTLYaGmHtpEckeMuJcSLzKeNeaS8p4AZs7nV+XTWCjYymiKSbpV6voFRoDhAdZEv4cUu4Swll+6KhfKGMZ/wbpgo/psaJ30alR9oAVPLR3+BcdA0gEo+se8o7b9Nsm4zU0J23HRii2uFS9Sc/t0gQw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSMyb-0007lX-UN for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 16:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2024 21:07: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.173559278929779 (code B ref 74281); Mon, 30 Dec 2024 21:07:01 +0000 Original-Received: (at 74281) by debbugs.gnu.org; 30 Dec 2024 21:06:29 +0000 Original-Received: from localhost ([127.0.0.1]:60207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSMy5-0007kF-Ea for submit@debbugs.gnu.org; Mon, 30 Dec 2024 16:06:29 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:59757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSMy1-0007jy-Lw for 74281@debbugs.gnu.org; Mon, 30 Dec 2024 16:06:28 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 81189441D2B; Mon, 30 Dec 2024 16:06:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1735592767; bh=f2lTCP/y5dgfD1QhMIelo+HX0KcCGyv+ZXgwBJXKrVM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=n3FvIEGTNfHqMW4Y7reIb6GsyBMgSPOk8Ho4A3bymXgirCNlO77ytVHmG9eky5yaI nCeY56ixjQxKW6OQyHJ9Y9S5ZaTI5Jq5dPMESGObijQ6Dkl4BB6iKW55SS4+4iRWHe D/B3az0KRVZgYFlzKGssSWUPkiFbsO+yJzTmiwbYIoU77GtmQWLBMcqelfWjk/DC9/ WKJaMc7yscE65RqWGAtrteaUalZSuGrxwuQqPWJbaTRKvA7DiaeFb0nlCpnqRgEwC/ wxLEa5nGEmjpyockDiu2yLZFODgiQFeQFc0gjTcw8z21dmBqXzh0prh1gewfWl5bXG 9B4os4n8bHXyA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D1E3E441DA1; Mon, 30 Dec 2024 16:06:07 -0500 (EST) Original-Received: from alfajor (modemcable005.21-80-70.mc.videotron.ca [70.80.21.5]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A6BD91203A5; Mon, 30 Dec 2024 16:06:07 -0500 (EST) In-Reply-To: <6A6B56C8-2635-4FDA-82F6-A63BD22238CC@subvertising.org> (Divya Ranjan's message of "Mon, 30 Dec 2024 05:35:48 +0000") 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:298027 Archived-At: > Apologies, I mistyped during travelling, the file I was referring to was the > original file of the bug report. `tex.scm` is the file from the Guix source > tree: /gnu/packages/tex.scm Hmm... on my tests, I can reproduce in `emacs-30` the very slow font-locking you described when we're at the end of the buffer, but not on `master`. Just to confirm that you're running the "right" code, can you do `M-: font-lock--syntax-table-affects-ppss RET` from within that `tex.scm` buffer? It should return nil if my fix was applied. If it returns t then you're presumably still using the old code (or there's something else amiss). If it returns something else than nil or t then there's something else amiss. FWIW, even with the fix, Emacs is not quite able to keep up with `M-v` with an auto-repeat of 40/s when done from the end of the buffer, but: - When I release the key it catches up fairly quickly (hence the "not quite"). So I wouldn't describe it as "hangs". - This is on my 16 years old 2.5GHz Core 2 Duo (Thinkpad T61). - It's an Emacs compiled with `-Og` and with `--enable-checking`. Stefan