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#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling) Date: Tue, 16 Aug 2022 15:50:23 +0300 Message-ID: <83lerofj3k.fsf@gnu.org> References: <87bksmx1j1.fsf@localhost> <5900f208367791fbdfe2@heytings.org> <83bksmka08.fsf@gnu.org> <325f95fd2b7c0cc80613@heytings.org> <83y1voflmb.fsf@gnu.org> <325f95fd2bce114fd74d@heytings.org> <87r11g1ieu.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, 57207@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 14:54:39 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 1oNw5e-0000QM-1R for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 14:54:38 +0200 Original-Received: from localhost ([::1]:49288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNw4q-0004Qu-MX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 08:53:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNw2A-0001NL-1w for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 08:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNw29-0005Sd-PH for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 08:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNw29-0000Gs-L1 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 08:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 12:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57207 X-GNU-PR-Package: emacs Original-Received: via spool by 57207-submit@debbugs.gnu.org id=B57207.16606542441017 (code B ref 57207); Tue, 16 Aug 2022 12:51:01 +0000 Original-Received: (at 57207) by debbugs.gnu.org; 16 Aug 2022 12:50:44 +0000 Original-Received: from localhost ([127.0.0.1]:45237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNw1r-0000GL-Ok for submit@debbugs.gnu.org; Tue, 16 Aug 2022 08:50:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNw1p-0000G6-Cr for 57207@debbugs.gnu.org; Tue, 16 Aug 2022 08:50:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNw1j-0005RL-5j; Tue, 16 Aug 2022 08:50:35 -0400 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=3zOafsJ5XoJAvFuJpOUMo4TzBjKh34HTchqOc7GiV1I=; b=HsNCMeQbg51+ QNnZ1V7rgFzML6s5rncvL4vx9tTerY6K3EYjUtduSF2or+DAQaW/OpiIeRHNJkqdxUwDAQnlTTjUg 5KCi7nPF4dWHXOsPkwbEiNV6eTcBplzhUS/oDG9l+KypqH+xzI228Jnsldx23/cQXfbfa2VmUN4iV Fgl6C2MRQQawdxIkz5hanS8it58OaCXgsKJtHFZZUERyT/DSHtMAOun8I7cPkOr1Ls5wdb5OV9jyI RkmmjvQLILT2JOgiDrXFxiBFP/Pt3giozN3dZLb/3lbiEOObfI1T2BKMVaY2v/EbjsjhZn4ix751M tRyF7lgIbZwTzcqo9QyZ+A==; Original-Received: from [87.69.77.57] (port=4291 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNw1i-0006PX-Ll; Tue, 16 Aug 2022 08:50:34 -0400 In-Reply-To: <87r11g1ieu.fsf@localhost> (message from Ihor Radchenko on Tue, 16 Aug 2022 20:28:57 +0800) 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:239913 Archived-At: > From: Ihor Radchenko > Cc: Eli Zaretskii , 57207@debbugs.gnu.org > Date: Tue, 16 Aug 2022 20:28:57 +0800 > > Gregory Heytings writes: > > >> Maybe Org does something that frequently causes a window's redisplay > >> cycle to end prematurely, in which case the code that looks for long > >> lines could be called too frequently. But in that case, your proposed > >> change will have the same problem, I think? > >> > > > > That's possible indeed, let's see what Ihor tells us. > > I'm afraid that my knowledge of Emacs redisplay is not sufficient to give > any insight. I have no clue what "redisplay cycle end prematurely" means > and how it can be triggered. It means some hook arranged in that buffer changed something very basic while the display engine was processing the window: resized windows, scrolled the text, moved overlays, modified the values that affect the mode line's dimensions. Or maybe some input that affects the display arrives too frequently for Emacs to keep up with the changes on the screen. In any such situation, redisplay cycle is forced to end prematurely, and another cycle is started almost immediately.