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: Sat, 04 Jan 2025 15:10:06 +0200 Message-ID: <86ttaed8sx.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27285"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74281@debbugs.gnu.org To: divya@subvertising.org, Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 14:11:18 2025 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 1tU3vy-0006wo-Jd for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 14:11:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU3vj-0005C2-Pi; Sat, 04 Jan 2025 08:11:03 -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 1tU3vi-0005Bp-85 for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 08:11:02 -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 1tU3vh-0000cA-VJ for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 08:11: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=3Xrxk+6FXraTPBQrPsKELqToCAz4Rbgbxj+snPildNM=; b=nW04NLcZszgQ2e+Wq3Ra7R3H4iTOG9AH0xgwuD2WCH2btxiYEAZvRVcNiaWZe5wLo/M93FOPapz4z0k5kHdDFBCEoYk44ZlgJC+OUphi7xYMcyROO+WIhTislwZULgWSiKo7rcqEGtIpczORFRCXygdcxJnHbAVp1P5EX+slA6mhNHh3Vz29z0qbwYWBVdgRV6xgtah6mahnHOnxyOKzzbAUxHxG+cFWTXiT09g8YUrhK+g/lrcyjN5fGZG4fzNHalpo4j3y3Tu0XMcXwhisZCTX+xBnD45ppPuR1Jza6lx8J8bqjk56lzAmKLvZ/CMnIrY6GoylYhDRs+qLxT0hYg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU3vh-0007Li-P9 for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 08:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 13:11: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.173599622428197 (code B ref 74281); Sat, 04 Jan 2025 13:11:01 +0000 Original-Received: (at 74281) by debbugs.gnu.org; 4 Jan 2025 13:10:24 +0000 Original-Received: from localhost ([127.0.0.1]:53869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU3v2-0007Kc-7b for submit@debbugs.gnu.org; Sat, 04 Jan 2025 08:10:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40574) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU3v0-0007KO-Jm for 74281@debbugs.gnu.org; Sat, 04 Jan 2025 08:10:19 -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 1tU3ut-0000Qf-6x; Sat, 04 Jan 2025 08:10:12 -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=3Xrxk+6FXraTPBQrPsKELqToCAz4Rbgbxj+snPildNM=; b=e891ueW1e8pL +PaUhxacL+nK6ZNMgQlQ60+3JatLFC3NKkjvxeUWG1bZb1oQEQ0yUttSCIykSqgzHDltOdN7eqw36 qL6gp9fiJzHbqtif6goohL/1bCsUdHZRJEYMIlnG7nb8KOgO1Nmrt9vogkPhy4RwF2Yo+3CKKWorq m2MLABOP6llvtYnaeFxSm03kQYqLqivItlIJebiu5oRY2K8gBPtLFV0kh7+0WueQX6u5bWfmRPU2E hj46Os+3vBujG7EgO8A3MOXfxb0E/EYLQ0kLxXya8/C6koaed3b5yC8dyfHSGAqXufDXm89Jsz15s AK+nUbHJJ5BLel5PYlzd3A==; In-Reply-To: (bug-gnu-emacs@gnu.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298394 Archived-At: > Date: Thu, 02 Jan 2025 14:12:06 +0000 > From: divya--- via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Hello again Stefan and Happy GNU/Year. > > > 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. > > I just checked and my compiled build was of an older commit. The > variable was set `t`. I built from the latest commit and indeed now I > can scroll flawlessly in the reported file. > > > 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`. > > That's reasonable for the system. I do not notice any sort of lag with > `M-v` on my system (Ryzen 7 5700G). > > Thank you Eli and Stefan for the prompt fix. Really admire the work you > guys do. So should we now close this bug?