From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: divya--- 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: Thu, 02 Jan 2025 14:12:06 +0000 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: divya@subvertising.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1245"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Roundcube Webmail To: 74281@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 15:13:27 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 1tTLx1-0000C3-56 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 15:13:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTLwh-0005Bs-1e; Thu, 02 Jan 2025 09:13:08 -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 1tTLwd-0005Ay-AE for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:13: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 1tTLwc-0005fC-0w for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:13: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:MIME-Version:To:Subject; bh=C6x+IzifTrjUhoikKTB5qgBHDWPcuPja/LDWVU8x/ek=; b=F0LpEg9Oh24ToRCpa5OpgShipAMT0jqPE4RUQvs5X9wfZiTSq2IDpGShVcIMe4eF8AmOwe+0eVerqsELEQlbdxNdbMFbWZlbRMJlWK8vWJTjy1MsZGv6F8x99RVw/VMCiUlkK6+G46EZVfg25kNPBAXqyOJKGbDo4riC70Nw9GCj6LAnmtcJ7nJYtyFsLDxQs3GaaHcU6bAQnz3Zmy28sOWnSUbQgL+eIeJcd+A2BHiyDyPM7A0xBzd/oVC+w4LE4jF1+H8aII18o8qg+kPH4n1XuASjsUF5R4mJzVoyeX8V1EMBE1p53tLe0PGE9kC9MHTuUktfMK8WM6xMk11Qrw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTLwb-0002H3-Qv for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: divya@subvertising.org Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 14:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74281 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17358271418681 (code B ref -1); Thu, 02 Jan 2025 14:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jan 2025 14:12:21 +0000 Original-Received: from localhost ([127.0.0.1]:43270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTLvx-0002Fx-Af for submit@debbugs.gnu.org; Thu, 02 Jan 2025 09:12:21 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:50076) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTLvu-0002Fj-Jf for submit@debbugs.gnu.org; Thu, 02 Jan 2025 09:12:19 -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 1tTLvo-0004vr-Rm for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:12:12 -0500 Original-Received: from latitanza.investici.org ([2001:888:2000:56::19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTLvn-0005Wr-02 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:12:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=subvertising.org; s=stigmate; t=1735827127; bh=C6x+IzifTrjUhoikKTB5qgBHDWPcuPja/LDWVU8x/ek=; h=Date:From:To:Subject:In-Reply-To:References:From; b=eJt1ybeiPp4zZ1UUH4axJXHDfkNdkHSJPmu/3kMFSuFXDyAKOR2bpGr1maOqEm69k HdYooo7qJnWOjqoHAOKFLyISuGfN4s0+bKElR2rWYOeYipIoWJgkr5SqBrz8Lqk++e MYyhPO1Ca1ROyKjW+xS2HllI553izfMhvvBxvxwQ= Original-Received: from 2.mail-backend.investici.org (unknown [10.0.0.12]) by latitanza.investici.org (Postfix) with ESMTP id 4YP7tv1WYFzGp3t for ; Thu, 2 Jan 2025 14:12:07 +0000 (UTC) Original-Received: from 2.webmail.investici.org (localhost [127.0.0.1]) (Authenticated sender: divya@subvertising.org) by 2.mail-backend.investici.org (Postfix) with ESMTPA id 4YP7tv0XMdz2xGF for ; Thu, 2 Jan 2025 14:12:06 +0000 (UTC) In-Reply-To: X-Sender: divya@subvertising.org Received-SPF: pass client-ip=2001:888:2000:56::19; envelope-from=divya@subvertising.org; helo=latitanza.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:298170 Archived-At: 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. Regards, Divya Ranjan, Mathematics, Philosophy and Libre Software