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#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely Date: Fri, 16 Sep 2022 08:35:10 +0300 Message-ID: <83zgez51bl.fsf@gnu.org> References: <87pmfx6h7y.fsf@gnus.org> <2b58b8f5429a6e3aecda@heytings.org> <834jx85tyv.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 57804@debbugs.gnu.org, pogonyshev@gmail.com To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 16 07:36:18 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 1oZ41S-0007Qn-3o for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 07:36:18 +0200 Original-Received: from localhost ([::1]:46612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZ41Q-0004uW-8V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 01:36:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ41D-0004u8-6O for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 01:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42139) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZ41C-0006st-Pu for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 01:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZ41C-0000Qj-4p for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 01:36: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, 16 Sep 2022 05:36: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.16633065271604 (code B ref 57804); Fri, 16 Sep 2022 05:36:02 +0000 Original-Received: (at 57804) by debbugs.gnu.org; 16 Sep 2022 05:35:27 +0000 Original-Received: from localhost ([127.0.0.1]:41217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ40c-0000Pn-Ct for submit@debbugs.gnu.org; Fri, 16 Sep 2022 01:35:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ40Z-0000PY-8r for 57804@debbugs.gnu.org; Fri, 16 Sep 2022 01:35:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ40T-0006aW-Q0; Fri, 16 Sep 2022 01:35:17 -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=fJrqRvqFUTOPAjUWSBayuFmTE2kUb+yeCKO+sCL7Oj8=; b=fLgkN1lQHTI0 Q5vzrCPvwwgzWk6mJIMSOfG5qW9eFJpuhVbZ4ZaiBOf6zQnUnv0PCZl5yh2QoDCKW7Msz+sFqeRWf P5AhkKsvD8Q6KWEMNkbRP3E7kxUxGXodrHmRRJVOX1ePH/X6owqFOetjiYLmYxAA1SHqjCjAQqcdc 9jA8bnmhgtSHEQATD3gmEzc+T8EZeVuF+N/aom8Q6OFKYul0IdAlboAP5GX/Rq6XENqO6LsDABq3t a2uxvB/nAhkSnuE6/4X51rDxZzTGNaDTbDdjO3RtKPnWzrDnxuK+4HuVYPYjhY2zGcn2aFx/sQVUD nTIgqyb1L6o9ywfcNL5+Jw==; Original-Received: from [87.69.77.57] (port=1101 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 1oZ40S-0007kO-Uz; Fri, 16 Sep 2022 01:35:17 -0400 In-Reply-To: (message from Gregory Heytings on Thu, 15 Sep 2022 20:18:27 +0000) 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:242685 Archived-At: > Date: Thu, 15 Sep 2022 20:18:27 +0000 > From: Gregory Heytings > cc: Eli Zaretskii , 57804@debbugs.gnu.org, > Lars Ingebrigtsen > > > I see that manually evaluating `(setq-local long-line-threshold nil)' in > > a buffer where the optimization is already in effect (i.e. where > > `(long-line-optimizations-p)' evaluates to t) doesn't disable the > > optimization. Do you have a solution for that? > > No, and that will not be supported. I don't necessarily agree. We didn't see the need for this yet, but if we do find significant use cases where that could be important, we will consider adding something, like perhaps re-evaluation of the optimization flag under some circumstances. For example, changing the value of long-line-threshold could be one such trigger. But for now we don't see a need for that, and prefer that Lisp programs that run via fontification-functions will be adapted to this new protocol.