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:49:22 +0300 Message-ID: <83o7vh26e5.fsf@gnu.org> References: <87pmfx6h7y.fsf@gnus.org> <8735ct6f6q.fsf@gnus.org> <83r10d26o8.fsf@gnu.org> <87tu594zpt.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21810"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57804@debbugs.gnu.org, pogonyshev@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 14 20:06:44 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 1oYWma-0005WW-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 20:06:44 +0200 Original-Received: from localhost ([::1]:45864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYWmZ-0000L2-BE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 14:06:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYWWQ-0002Ro-Ux for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:50:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYWWQ-0004RL-Mb for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYWWQ-000153-Bz for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:50: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:50: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.16631777814121 (code B ref 57804); Wed, 14 Sep 2022 17:50:02 +0000 Original-Received: (at 57804) by debbugs.gnu.org; 14 Sep 2022 17:49:41 +0000 Original-Received: from localhost ([127.0.0.1]:56041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYWW5-00014P-9M for submit@debbugs.gnu.org; Wed, 14 Sep 2022 13:49:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYWW2-00014B-Nt for 57804@debbugs.gnu.org; Wed, 14 Sep 2022 13:49:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYWVx-0004Ns-E0; Wed, 14 Sep 2022 13:49:33 -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=KETEDO87lAxgxALah80gLomeMEtRqUK9VqE3BpjkQws=; b=ayi6tgFGRMxC THjxVY1i4/gZqXjO6P5602Hnww+OsIMtRZ1WJVBqRo8CsjS5E1htIwmni+xQAQyNCexHeGaYQWvOE UHXK73nyXZknRxBlkevUPXMCY5RkqMavL8cEOsZMs2y422G44h/HGy3tAa/jN2C9cgE3FV2w7o9gE RFgs+N3sGPyPeyfuYCmICDRisIxx1KNPb0+ToDXUIaPt3tRzctFDhDe9sRFDu5yBSxP2dl+Hj+fnb OI0rpvSRsgU8Ob6tz199n0BE+ywBkWqmbOoYJoZxEDHGNYD/OSo/SVL51IHlAb5XEXUvHr9l7/krw IOpnhp9sM2VefqHQZyJZkA==; Original-Received: from [87.69.77.57] (port=1481 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 1oYWVw-00085R-SJ; Wed, 14 Sep 2022 13:49:33 -0400 In-Reply-To: <87tu594zpt.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 14 Sep 2022 19:45:18 +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:242509 Archived-At: > From: Lars Ingebrigtsen > Cc: pogonyshev@gmail.com, 57804@debbugs.gnu.org > Date: Wed, 14 Sep 2022 19:45:18 +0200 > > 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. There's nothing accidental about my typing several C-g in a row. It just isn't related to any font-lock.