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#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely Date: Thu, 15 Sep 2022 20:26:54 +0000 Message-ID: References: <87pmfx6h7y.fsf@gnus.org> <2b58b8f5429a6e3aecda@heytings.org> 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="1915"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 57804@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 22:27:09 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 1oYvS1-0000Mq-Fv for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 22:27:09 +0200 Original-Received: from localhost ([::1]:60262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYvS0-0006Iu-CQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 16:27:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYvRu-0006Ij-O9 for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 16:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYvRu-0005Pu-Et for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 16:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYvRu-0004bb-9U for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 16:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2022 20:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 57804-submit@debbugs.gnu.org id=B57804.166327361717692 (code B ref 57804); Thu, 15 Sep 2022 20:27:02 +0000 Original-Received: (at 57804) by debbugs.gnu.org; 15 Sep 2022 20:26:57 +0000 Original-Received: from localhost ([127.0.0.1]:59311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYvRp-0004bI-5X for submit@debbugs.gnu.org; Thu, 15 Sep 2022 16:26:57 -0400 Original-Received: from heytings.org ([95.142.160.155]:43114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYvRn-0004bA-NO for 57804@debbugs.gnu.org; Thu, 15 Sep 2022 16:26:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1663273614; bh=z28ZgjUWuMvdgMzvM6T8tAn0Iztu6MU3Eh+R4uGEiO8=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=v3g0w3pwK+a61NQ78LyI763r9jg6ytoripgcDtxW1kqINrYfwamqdDCQVctJCj+XZ PCALioOqBGvDH1CUP0NBXc7+pm6Uf6DF/c+L53f/ALSxFBVZdd57ROUedRCLZrfWma Q2a2XTd/YAhkLd7DCjjdXnqhVOoAwUsqjBsz2VfnxB9tbJJBhYKhD8s/iycdgxpKuM LN8yqZ3xM1UojsZrj3/yxoiqOQLnT9uI+EBvaoA9mzN7Hk174Ix6qbu6B2uLCpuAVX 9r7/+oXxmayGd7ko8bb5qVJ1/ZW3kB2lsWRA5aV7q+/Nvv0Up1az1GOjAQJrObVhtd QMeQJXOe3o+qA== In-Reply-To: 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:242647 Archived-At: > > How do I decide what is sufficiently large? With this optimization > Logview can fall into that infloop in fontification code, at which point > Emacs becomes completely frozen, with the only way out to restart it. > You just described what would happen without this optimization with a sufficiently long line. > > With long lines I can suffer slow and not-quite-responsive (but still > not hung to death) Emacs, which is much more bearable. > Obviously you did not have to deal with long enough lines. > > For you this long-line optimization is probably very important, maybe > you often work with files that trigger this and make using Emacs a pain > without it. > It isn't for me personally, no. It is important for Emacs users.