From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Tue, 16 Aug 2022 10:26:32 +0000 Message-ID: <325f95fd2b9c25a9047f@heytings.org> References: <1144021660321893@iva5-64778ce1ba26.qloud-c.yandex.net> <12348081660379417@sas2-a098efd00d24.qloud-c.yandex.net> <66bbbb95983414e79637@heytings.org> <83wnbckp0q.fsf@gnu.org> <8e884ebe-2d2e-d599-15c3-a5cfe5e6b295@yandex.ru> <83o7wnl7ok.fsf@gnu.org> <036414cc-c711-efaf-ed5b-f8ccfaca0604@yandex.ru> <5900f20836753183a6ac@heytings.org> <5c22e38a-5dcd-860e-28a0-b4a5ede6a21b@yandex.ru> <877d3awb92.fsf@localhost> <87pmh2z277.fsf@localhost> <87mtc6yzfv.fsf@localhost> <6be37aac-f305-16e0-b856-6884108f940e@yandex.ru> <87h72d4slv.fsf@localhost> <87tu6czu4y.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39036"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier , Dmitry Gutov To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 12:27:25 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 1oNtnA-0009xf-U6 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 12:27:25 +0200 Original-Received: from localhost ([::1]:42462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNtn9-00014p-RY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 06:27:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNtmo-00014a-G0 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 06:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNtmo-0007mQ-7k for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 06:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNtmn-0002pT-Tp for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 06:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 10:27:01 +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.166064559610843 (code B ref 56682); Tue, 16 Aug 2022 10:27:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 10:26:36 +0000 Original-Received: from localhost ([127.0.0.1]:45020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNtmO-0002on-1a for submit@debbugs.gnu.org; Tue, 16 Aug 2022 06:26:36 -0400 Original-Received: from heytings.org ([95.142.160.155]:55540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNtmL-0002od-WE for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 06:26:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1660645593; bh=CpmG2eEyx5ItFLNtZZBa5e47EseA+bPlapVqwXV7UOk=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=w4dq+JD5f+8rkimhjPJ+gy5S+pA9WTBIJ18tW2BpDO1CdUHou7D3mNW/0kiaIDcMb cR9qyEqKw8Fg2qrUuO3PWg21FrKKz3mGvYJNChlOZq5+4r46ipbe8j58s04U3zgOBJ DEtPuw+2kMtFQP1FbrRJEgm14AoLokNAE1khHuWeyZ5FeiLKF1wupaDHEkhnda1rl0 upExlW434VAgksUS6hK4EAT7/te23gi6TM9dpCv81JoPRdjvQeXNzmUlRNCHre0vch QDMgivxcvTRSoLjNjBR7VYcYFedfcJD1kaDf7w/2X0jBuGZE4yDEHJHAMsJEOlwJBy R7L/ZXhJsVHqg== In-Reply-To: <87tu6czu4y.fsf@localhost> 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:239889 Archived-At: >> Not if the whole buffer contains text which the major mode can't >> understand. There are valid cases where a major mode needs to widen, >> indeed, but not when called from font-lock or from >> `indent-line-function`. > > `org-indent-line' (the value of `indent-line-function' in Org mode) does > require invoking parser in order to determine the syntactic object at > point, which, in turn, needs to consider the full buffer contents. This > is prescribed by Org syntax. We cannot avoid this. > Do you really mean that there is no way to avoid invoking the parser on the whole buffer, and to possibly process 20 MB of data, when org-indent-line is called?