From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Mon, 15 Aug 2022 09:23:21 +0800 Message-ID: <877d3awb92.fsf@localhost> References: <92da07bd02a6cc861e1a@heytings.org> <837d3lzv8n.fsf@gnu.org> <2c8d6755-cfe2-6559-3fde-3fa30ffb411e@yandex.ru> <83mtcgy44k.fsf@gnu.org> <83k07jx5jn.fsf@gnu.org> <866e510d-a060-7daa-d002-97861d056fa7@yandex.ru> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18438"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, Gregory Heytings , Eli Zaretskii , monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 15 03:23:22 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 1oNOp7-0004aa-Bl for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 03:23:21 +0200 Original-Received: from localhost ([::1]:41756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNOp5-0007QZ-U9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Aug 2022 21:23:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNOoo-0007QQ-B7 for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 21:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNOon-0007rw-Qh for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 21:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNOon-0002Kj-IK for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2022 21:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2022 01:23: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.16605265488927 (code B ref 56682); Mon, 15 Aug 2022 01:23:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 15 Aug 2022 01:22:28 +0000 Original-Received: from localhost ([127.0.0.1]:40102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNOoG-0002Jv-7F for submit@debbugs.gnu.org; Sun, 14 Aug 2022 21:22:28 -0400 Original-Received: from mail-pl1-f171.google.com ([209.85.214.171]:39927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNOoC-0002Je-Pr for 56682@debbugs.gnu.org; Sun, 14 Aug 2022 21:22:26 -0400 Original-Received: by mail-pl1-f171.google.com with SMTP id d10so5236148plr.6 for <56682@debbugs.gnu.org>; Sun, 14 Aug 2022 18:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=bN3WkUJcsrsXDhmK66F8KtH12pGhJ+UQea9ub8dQXsQ=; b=AxcFrZgEV3klmxxijdBUXtBqQq/MQoyrcwmpLNNdq1zWeew3dzlLkHxVMrgzzVn4oX Zuylh7xtIKBvDHt+AhJrlF9sNfdZjiOd3OXwbF8c8cGQuV0fQ1h6X5i+sRTV4Vl6KLLQ xB8RqW73mJYWeSapkUQisIVwwOzRMb6/LgYYzhCA4rH9YSPKvvdLJkl3H8pnmS6or40e VZihDRrZaECtCy7vMb61svOgA44Z7mNdfbGOqykejNfIVmPdpxHKUnjxARE7RgpjiQEu vmA6NBHDcDsDaIeZY5YEpCZtOoZvx/UBH6uQQNNzDvMcIcKpPBZvQHsSpkdg+2AF8GIQ VNjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=bN3WkUJcsrsXDhmK66F8KtH12pGhJ+UQea9ub8dQXsQ=; b=AvwTPhb2waVUNqK4zRF/niz4JoUO2+A+gkZwLPivVxXAVM1HXhiTgZZaW1mQyYXDI6 3MaB1bZJ5vmt/vypRo4Jm39HUL8JknbPiRjcKrG9gvG7bT8lbkDvuoU7BhzrR/HMFr6S g5D5gdnt1iY+xO1onFmcrGXVZG44YZ63TGoIBqeuUKpOM/NP7s3x2xioKgD4w61PYh63 uGyi/YFgN43pzJLw5IGEzTBGMsLRbXpnv3yMz2oC3+zsaJWeQbszk878incAAAee8zIm 0VwE7Xn8RWaZCAb98364N0k3m5oBxeQs5nemSSVHkEyvOESKAZ6tz3Gqpdaatx+lTeDp JYpg== X-Gm-Message-State: ACgBeo2D+DfHZS+z2dPT0ma3yeWW3bqTxlJv1oqu0pepAhg5j09H+TAN Zfg/T3UDRg2V7C1WMbr12V4= X-Google-Smtp-Source: AA6agR7c7enKvrUDE4MscpaQsIWkhsShVS/W4aAlb0tk7l+v3mT9xRxWwT+dtM11y05OBt8D9LtYtw== X-Received: by 2002:a17:902:b78b:b0:16e:e5b1:d1bc with SMTP id e11-20020a170902b78b00b0016ee5b1d1bcmr14470581pls.118.1660526538740; Sun, 14 Aug 2022 18:22:18 -0700 (PDT) Original-Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id z127-20020a623385000000b0052d432b4cc0sm5661059pfz.33.2022.08.14.18.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Aug 2022 18:22:18 -0700 (PDT) In-Reply-To: <5c22e38a-5dcd-860e-28a0-b4a5ede6a21b@yandex.ru> 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:239712 Archived-At: Dmitry Gutov writes: >> The problem is (again) that what you would like does not provide any >> protection against modes which use widen inside their fontification >> routines. > > Do you have examples of such modes? > > Calling 'widen' inside font-lock-keywords is a bug, and the bugs should > be fixed at the source. widen inside save-restriction is likely used by Org mode (or will be). This is needed by Org parser to determine the syntax element at point. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92