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: Fri, 22 Jul 2022 22:25:20 +0300 Message-ID: <838rolj6fz.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <83o7xhjj4a.fsf@gnu.org> <83lesljiez.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38461"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org To: gregory@heytings.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 22 21:26:59 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 1oEyId-0009mb-DN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jul 2022 21:26:59 +0200 Original-Received: from localhost ([::1]:46430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEyIc-0000nT-98 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jul 2022 15:26:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEyHj-0008F8-QA for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 15:26:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEyHi-00041V-LC for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 15:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEyHi-0001Ht-Dr for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 15:26: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: Fri, 22 Jul 2022 19:26: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.16585179374911 (code B ref 56682); Fri, 22 Jul 2022 19:26:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 22 Jul 2022 19:25:37 +0000 Original-Received: from localhost ([127.0.0.1]:42451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEyHI-0001H9-Se for submit@debbugs.gnu.org; Fri, 22 Jul 2022 15:25:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEyHD-0001Gs-0A for 56682@debbugs.gnu.org; Fri, 22 Jul 2022 15:25:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEyH7-0003yD-4s; Fri, 22 Jul 2022 15:25:25 -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=/4wCqAj3NH9P2mi3fn3aUP/OQXil/ealqrzWpNQD120=; b=DEhNq1Hd3In4 Rx1YZZ1Cwjh+iBTLZCuHfntyb+C8GOEsFRz1fi1rYOaSq05AISoz0ZOowNLxLq/Y+hpU/k8Me5PNt x13Q4XH/Bvmxg0CpbRd/jJKQ6vMhiUWZ8s/AV3n15YWMmMvzrW7CRCEV/xCWU13OWwsqLWEvNkpRU IOUaB+nbkamAwWBd3tp5xyznUPzk4cWWhK1nJPzTZpe88doZUJmxCl2KW/deEkFH5RUrrUrmcQLQK 7Fq7OAdUTZjiUYpZDy3cwXQbLpzDyeebjDKt3oHjcZJCgpBs2u32tx+6MgbvyEI8iJQ1IvJWuFZCw 0/a9Uc7gWHcDzKWDLcdkDg==; Original-Received: from [87.69.77.57] (port=2357 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 1oEyH5-0003tR-DK; Fri, 22 Jul 2022 15:25:23 -0400 In-Reply-To: <83lesljiez.fsf@gnu.org> (message from Eli Zaretskii on Fri, 22 Jul 2022 18:06:44 +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:237645 Archived-At: > Cc: 56682@debbugs.gnu.org > Date: Fri, 22 Jul 2022 18:06:44 +0300 > From: Eli Zaretskii > > > The assertion below can now be violated: > > > > if (it->narrowed_begv) > > { > > record_unwind_protect (unwind_narrowed_begv, Fpoint_min ()); > > record_unwind_protect (unwind_narrowed_zv, Fpoint_max ()); > > SET_BUF_BEGV (current_buffer, it->narrowed_begv); > > SET_BUF_ZV (current_buffer, it->narrowed_zv); > > specbind (Qinhibit_widen, Qt); > > } > > > > val = Vfontification_functions; > > specbind (Qfontification_functions, Qnil); > > > > eassert (it->end_charpos == ZV); <<<<<<<<<<<<<<<<< > > > > because of the "narrowing". (I actually saw this assertion violation > > once on the branch, but I cannot reproduce it.) > > Sorry, it's very easy to reproduce: visit dictionary.josn, and then > type C-v several times until it happens. I installed a fix.