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#56682: Fix the long lines font locking related slowdowns Date: Sat, 23 Jul 2022 18:29:39 +0300 Message-ID: <837d43j198.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <8335esjppt.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23170"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 17:30:34 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 1oFH5N-0005sc-SW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 17:30:33 +0200 Original-Received: from localhost ([::1]:32920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFH5M-0000By-Fv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 11:30:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFH4s-00009m-RS for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 11:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFH4s-0006CY-HD for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 11:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFH4s-0007yU-8E for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 11:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2022 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.165859019230617 (code B ref 56682); Sat, 23 Jul 2022 15:30:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 23 Jul 2022 15:29:52 +0000 Original-Received: from localhost ([127.0.0.1]:46070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFH4i-0007xl-Hu for submit@debbugs.gnu.org; Sat, 23 Jul 2022 11:29:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFH4d-0007xO-0J for 56682@debbugs.gnu.org; Sat, 23 Jul 2022 11:29:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFH4X-00065o-K1; Sat, 23 Jul 2022 11:29:41 -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=L3VlLH7/TsJdqKxROw8296c8WnT2ArU4qRXuH5s1SvE=; b=fR31VAIycXLm VeH/SEGO+RwqSPMl+86gpkOKBICRFRLrulSzKHSztQmXwprDrg8iLfriOvKiG4/D3mJKVGX/Iwnjv Yj2QrdS8xt1kZAeLUM+Vi0xYc8+FgpIHqAlPpSHm7q9AIyg9LrgB+Uk5REmiwAGJzwtC58wT/2/Z7 Uf7/xjOvfC7FzWUjOfFIXEI3g+oRb1OAaUZdv2lK1bCbRD8+8CylSwVcyIRHEW6i5QyVGFFtKGVE/ 7b3BmvPCowd1GdLoPIxfOiEyAV1UAa0846mMMtFZMWYJ+mLOm3o3Bhm4rNvy31NoLpg2eSf3DwKNJ 1i+G5mmGD7TudzO57xTQAQ==; Original-Received: from [87.69.77.57] (port=1533 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 1oFH4X-0003PC-2h; Sat, 23 Jul 2022 11:29:41 -0400 In-Reply-To: (message from Stefan Monnier on Sat, 23 Jul 2022 10:07:29 -0400) 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:237759 Archived-At: > From: Stefan Monnier > Cc: gregory@heytings.org, 56682@debbugs.gnu.org > Date: Sat, 23 Jul 2022 10:07:29 -0400 > > >> From: Stefan Monnier > >> Cc: Gregory Heytings , 56682@debbugs.gnu.org > >> Date: Fri, 22 Jul 2022 19:25:47 -0400 > >> > >> For example, the behavior surprises me because I can't see why `M-x` > >> should cause any font-locking at all in the `long-line.xml` file. > > > > Any command that enters the minibuffer causes a thorough redisplay of > > the windows on that frame (because more than one window has to be > > updated). What does that have to do with font-lock is a separate > > question (but you are the best person to answer it). > > AFAIK if the buffer has not been modified (including things like > changing `window-start` or `point`), then a redisplay will just not > run jit-lock (and hence font-lock) at all, no matter how thorough. But the fact is without font-lock the response is faster by a large factor. So something, somewhere, still depends on font-lock.