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: Sat, 20 Aug 2022 13:33:29 +0300 Message-ID: <83a67zdx1i.fsf@gnu.org> References: <87bksmx1j1.fsf@localhost> <83edxdbs96.fsf@gnu.org> <87wnb5wthm.fsf@gnus.org> <83pmgxfyc7.fsf@gnu.org> <87fshtwsys.fsf@gnus.org> <877d35wsdd.fsf@gnus.org> <83ilmpfwrf.fsf@gnu.org> <8735dtwrar.fsf@gnus.org> <83h729ft60.fsf@gnu.org> <87tu68v3uu.fsf@gnus.org> <83tu68e83u.fsf@gnu.org> <87fshsteqc.fsf@gnus.org> <87bksgte5e.fsf@gnus.org> <877d34tdwf.fsf@gnus.org> <83pmgwdxhh.fsf@gnu.org> <8735dstdhn.fsf@gnus.org> <83mtc0du8c.fsf@gnu.org> <87wnb4rvqz.fsf@gnus.org> <83k074dsux.fsf@gnu.org> <87k073qnqw.fsf@gnus.org> <83bksfdzzk.fsf@gnu.org> <87h727p78n.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33196"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57207@debbugs.gnu.org, yantar92@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 20 12:34:17 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 1oPLo1-0008VA-7k for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Aug 2022 12:34:17 +0200 Original-Received: from localhost ([::1]:32794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPLnz-0005xy-Ns for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Aug 2022 06:34:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPLnn-0005xk-EO for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2022 06:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPLnm-00046N-Ar for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2022 06:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPLnm-0007dG-6y for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2022 06:34: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, 20 Aug 2022 10:34:02 +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.166099162229312 (code B ref 57207); Sat, 20 Aug 2022 10:34:02 +0000 Original-Received: (at 57207) by debbugs.gnu.org; 20 Aug 2022 10:33:42 +0000 Original-Received: from localhost ([127.0.0.1]:59670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPLnS-0007ci-Gl for submit@debbugs.gnu.org; Sat, 20 Aug 2022 06:33:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPLnO-0007cS-0c for 57207@debbugs.gnu.org; Sat, 20 Aug 2022 06:33:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPLnH-000446-N5; Sat, 20 Aug 2022 06:33:31 -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=v2VeglY3BwgM19CRJci++WZJCJYfqbde/vF19bMWunc=; b=JwiWQUbsrTWA Hi/HDP1zqd+NDvxnO+RLC0PhgDAzu14v+9TxMZGIJLKgFMKzEGi4BInYPa09vxF13nnqGKVyp+sFx /5oW2s+X7BPng2jgw178JYr4aLXMVXhVaGAnLZAnEYP7i80IgU8VMmlJjFCZR1YgAK772vk1cCaOd THVSIr8ttUR3BaYSBS7Mvs2SNq1anw9gA701w2SBeHucMQYDIdM3yO+nCIz7xzMhJHpLfuo7yKNa6 oAepRPGC0HmjZxgNepbMORz/i9h+Y0BwkrwonqIlFC4/Adib4aMkq9ZL7yznjiByAONfw45oC7FJz gT/jGjMMBFoDqA3e7DX3Gw==; Original-Received: from [87.69.77.57] (port=4157 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 1oPLnH-0007fI-53; Sat, 20 Aug 2022 06:33:31 -0400 In-Reply-To: <87h727p78n.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 20 Aug 2022 11:57:44 +0200) 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:240238 Archived-At: > From: Lars Ingebrigtsen > Cc: 57207@debbugs.gnu.org, yantar92@gmail.com > Date: Sat, 20 Aug 2022 11:57:44 +0200 > > I'm not quite understanding why we're narrowing here in the first place. > Point is not in a long line in this test case -- there's just a long > line (hidden under a display property) earlier in the buffer. Once a single long line is detected, the flag is turned on in the buffer, and all the optimizations/shortcuts, including narrowing, are applied regardless. A long line hidden by a display property is indeed a problem: it doesn't present any issue for the display engine, but is still counted as a potential problem.