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: Wed, 14 Sep 2022 20:32:18 +0300 Message-ID: <83wna5276l.fsf@gnu.org> References: <834jx93n4p.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12700"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57804@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 14 19:49:21 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 1oYWVj-0003BN-PV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 19:49:19 +0200 Original-Received: from localhost ([::1]:56582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYWVi-00018r-Co for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 13:49:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYWFy-0008Lc-QB for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYWFy-0001Nd-GC for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYWFy-0000c8-5K for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:33: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: Wed, 14 Sep 2022 17:33: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.16631767562327 (code B ref 57804); Wed, 14 Sep 2022 17:33:02 +0000 Original-Received: (at 57804) by debbugs.gnu.org; 14 Sep 2022 17:32:36 +0000 Original-Received: from localhost ([127.0.0.1]:55995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYWFX-0000bT-MB for submit@debbugs.gnu.org; Wed, 14 Sep 2022 13:32:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYWFW-0000bE-2V for 57804@debbugs.gnu.org; Wed, 14 Sep 2022 13:32:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYWFQ-0001Dx-S7; Wed, 14 Sep 2022 13:32:28 -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=vLZYjUbby77WM4QAkBl4g5/c9P+Prmqa6FBAtCeM14k=; b=Pkxw0AyO3GcY i9ZUSZDNE7chrRSBZ75AAEF5dQhUCJ7jx5QBR7VVff2owedpveiTyQy7L10CkDTxRiw2Cg15Ah+vI 71DmUkVLzQZNsSHx+FvOam2I0aMqwxMmo56G8kRZ6II0EREHyijJ3ozG8NJIGp7VjRrVDJmIvIKEf nJGmRBRb96kvMUG6flvBORAkwnZzM4O7gvUafoTyTAV8LSDhs4x1DfN0ksv7MV5NtgNQwCji6m3S2 jdVKg0kWnIe0sWrjr+TLOskCMEBq6MBlZ8/F4D6nzMS/0EHDpo0wB1wQcdqT+xpzk2sMDK5hd8Fzu KRFgFf+DczPZcRddFnwaTw==; Original-Received: from [87.69.77.57] (port=4408 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 1oYWFQ-0005ST-6E; Wed, 14 Sep 2022 13:32:28 -0400 In-Reply-To: (message from Paul Pogonyshev on Wed, 14 Sep 2022 19:25:09 +0200) 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:242499 Archived-At: > From: Paul Pogonyshev > Date: Wed, 14 Sep 2022 19:25:09 +0200 > Cc: 57804@debbugs.gnu.org > > > > (while t > > > "whoopsie") > > It is no wonder that Emacs is in such a poor state with 2 out 3 > responding developers failing to make _one_ mental step from "while t" > to "this could be a 100-line loop that accidentally falls into > infinite recursion". And even because of incompatible change in Emacs > itself. Emacs gives Lisp programmers enough rope to hang themselves, and expects them to be wise enough not to do so. Our own sources should not use so much rope, so if there are such loops in our code, please point them out, or show a recipe that uncovers them, and we will certainly fix them. But preventing programmers from writing infinite loops for the benefit of writing infinite loops, and in font-lock functions on top of that, is not my idea of good investment of our resources. It is much easier to fix such infinite loops so they aren't there in the first place. > Just wish I didn't get accustomed to this pile of crap 20 years ago > and just used a normal IDE like every smart person. You are welcome.