From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen 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 19:45:18 +0200 Message-ID: <87tu594zpt.fsf@gnus.org> References: <87pmfx6h7y.fsf@gnus.org> <8735ct6f6q.fsf@gnus.org> <83r10d26o8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29160"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57804@debbugs.gnu.org, pogonyshev@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 14 19:52:34 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 1oYWYs-0007J1-Gx for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 19:52:34 +0200 Original-Received: from localhost ([::1]:60610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYWYr-0004o8-Fa for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 13:52:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYWSd-0006z5-Ij for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:46:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39098) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYWSY-00041k-BM for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:46:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYWSY-0000x0-61 for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Sep 2022 17:46: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.16631775313608 (code B ref 57804); Wed, 14 Sep 2022 17:46:02 +0000 Original-Received: (at 57804) by debbugs.gnu.org; 14 Sep 2022 17:45:31 +0000 Original-Received: from localhost ([127.0.0.1]:56030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYWS3-0000w7-EX for submit@debbugs.gnu.org; Wed, 14 Sep 2022 13:45:31 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:52216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYWS1-0000vs-Q6 for 57804@debbugs.gnu.org; Wed, 14 Sep 2022 13:45:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=R78dOr2RheZUSYYzZrRw+B8kTaTV/YNwcEyOxbGN6No=; b=cPruDGdpGxGx+0Jyd5mfuBcz5g aHDobDutw5XdsD9kkyZInZUVn6QtnGrPHsJV/b4ekxlC1R5syQL2urBmyZvUkhLkoElVS1/8XnRrC esDqFDk/+EgXTwstOQroHcLHXcZgayhAsGYnoiQImmDOG3LhHJWRYR2ZY2YbFlBrQ1cM=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYWRs-0000Ty-Mj; Wed, 14 Sep 2022 19:45:22 +0200 In-Reply-To: <83r10d26o8.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Sep 2022 20:43:19 +0300") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEXu7u3Y0NfGoK/P NkTdV2e3rsuZeYdLOkUTBw9kV14nEhlLJio2IiosGiP////Zf5E1AAAAAWJLR0QOb70wTwAAAAd0 SU1FB+YJDhEYCHAinlEAAAGOSURBVDjLrdK9TsJQFAfwYuJOE0kMkcHi4iq+AKUvwEA0xBV4Az4S WeV4oaNCBRcXLhe7Yk2ZhVSZ+xH6LrYF1J7WxMH/eH+959xzeznuKzz330nyPJ8Mr2Rzu5xtlxKC kD+RxKzkJ3cuSTvYE0VRkIRsTioUQju2OZB2yf/xPIlU9ZjfJAz7NbgpBSkiOJ0+xUPfaFXiIKUs G9/wY/pU8aESX6o0qsSXKtUqA9tbr96F4aLfrw5pS2nDbRjKzKR2GwAIgittDJN5DJTpmKrUA1zq EkyHAIlC2V3QWDj6WPt1SBRc1weg0R0r73tCZQwZdwlkOKXgIDhULZnN3y2QEaQpdHVdN2J6LLtz XVcdhnuoBmGMMAtDmvjDgRPZkWZTzYOXXhTWj8DgTXUjwEYe2E0jCg2v1HNzjU/F4BpkCosOBkJW /t3OiMmF3lWGBceFWdPGpZh35xQmA9wcZOIPYtcioAalVKWDwSLBr62bGOgGXhuoOQSPCmCi/ALd ezygBsw3gqGnseBhkTrHfQIpVOojvKi+iAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wOS0xNFQx NzoyNDowOCswMDowMC0MBZkAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDktMTRUMTc6MjQ6MDgr MDA6MDBcUb0lAAAAAElFTkSuQmCC X-Now-Playing: Anne Clark's _Hopeless Cases_: "Armchair Theatre" 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:242502 Archived-At: Eli Zaretskii writes: >> A single `C-g' wouldn't be quite the right thing, because the user may >> hit `C-g' by accident while font-lock happens to run (and it's not >> hanging), which is why I though a special key sequence like `C-g C-g >> C-g' might make sense. > > I frequently find myself hitting C-g several times for reasons > unrelated to any infloop. But like I said, three `C-g's without any idle time in between would be the magical command to switch off font locking. I think that's hard to do accidentally in normal circumstances.