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#45898: 27.1; wedged in redisplay again Date: Tue, 21 Jun 2022 16:38:59 -0400 Message-ID: References: <46b65e3f-cf3d-a3f2-9a9a-100e58274ff6@jovi.net> <87h74wh9x7.fsf@gnus.org> <83bkv47evy.fsf@gnu.org> <87k09rbcmn.fsf@gnus.org> <83a6an5jt3.fsf@gnu.org> <8335gf5er3.fsf@gnu.org> <87leu686z4.fsf@gnus.org> <83sfoe2k0j.fsf@gnu.org> <87zgim6qtt.fsf@gnus.org> <83mtem2dc9.fsf@gnu.org> <87y1y63qmq.fsf@gnus.org> <83h74t3k5u.fsf@gnu.org> <87tu8sx569.fsf@gnus.org> <83v8t6us8t.fsf@gnu.org> <87zgiinptk.fsf@gnus.org> <83mteiufih.fsf@gnu.org> <877d5kojbo.fsf@gnus.org> <83zgigu3e0.fsf@gnu.org> <500e4b9c69f2a90e7cf05b956178d71b@webmail.orcon.net.nz> <835yl3tnv3.fsf@gnu.org> <83iloyo0x7.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="23957"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: psainty@orcon.net.nz, Lars Ingebrigtsen , Emacs-hacker2018@jovi.net, 45898@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 21 22:40:30 2022 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 1o3kfj-00060f-Un for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jun 2022 22:40:28 +0200 Original-Received: from localhost ([::1]:43814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3kfi-0003iD-E2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jun 2022 16:40:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3kfK-0003hu-U9 for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2022 16:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3kfK-0008L0-K2 for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2022 16:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o3kfK-0004dK-GK for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2022 16:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jun 2022 20:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45898 X-GNU-PR-Package: emacs Original-Received: via spool by 45898-submit@debbugs.gnu.org id=B45898.165584395017734 (code B ref 45898); Tue, 21 Jun 2022 20:40:02 +0000 Original-Received: (at 45898) by debbugs.gnu.org; 21 Jun 2022 20:39:10 +0000 Original-Received: from localhost ([127.0.0.1]:33424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3keU-0004by-HJ for submit@debbugs.gnu.org; Tue, 21 Jun 2022 16:39:10 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:26556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3keT-0004bl-CC for 45898@debbugs.gnu.org; Tue, 21 Jun 2022 16:39:09 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9A5E8100392; Tue, 21 Jun 2022 16:39:03 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 27589100182; Tue, 21 Jun 2022 16:39:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1655843942; bh=97ncoPEVNL1tzgUmK6bJ/XWxpjVr5+Wo56Qy6ojff4k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Esm38gSXkp7ZOOpuZPChtM75D9E2As+Pv5n0m+YfQJcfxqI4M3uJOThmN2DGNvUgb 5Ht1j8IMlMRZjsMEJOyjIQNcsJpErI1dbIHkX2vvF2p6/toVsvutDEJszocjxro6X8 /P9wTSDLfXVDA11qRC7H646AN70nfFDnykRVdG3BLQggu7eynWHIwB9bSucU5yuU3n 7E0VwbPd//8qlk6+teuF8j5A60JOVWTWXhDcd6CymaWbA/kY201cgvut4kMnMdOjFg 9/NZnnrTcSSRkh0YKuNUK199+BPKCpc5ChMfPUk3KYbLBJbGQ/hZz6A3QOYGL9yK2Z og1vVz5/za4Gg== Original-Received: from alfajor (unknown [80.82.234.185]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3D24712047A; Tue, 21 Jun 2022 16:39:01 -0400 (EDT) In-Reply-To: <83iloyo0x7.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 Jun 2022 11:01:24 +0300") 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" Xref: news.gmane.io gmane.emacs.bugs:234982 Archived-At: > One surprising finding is that sometimes syntactic fontifications > (triggered via jit-lock.el as part of rendering the buffer) seem to > run amok: jit-lock asks the mode's fontification to fontify a > 1500-character block, but that results in parse-partial-sexp being > called to parse the entire humongous file, BOB to EOB. IIUC the file is a single long-line. Font-lock works line-by-line (in theory major modes can override that by providing their own value for `font-lock-extend-region-functions`, but regexp-based fontification is hard to do with our regexp enging if not working line-by-line), so even if jit-lock only requests fontification of a 1500-char block, font-lock rounds it up to a whole number of lines (and then proceeds to call `parse-partial-sexp), which would explain what you're seeing. Stefan