From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev 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:30:35 +0200 Message-ID: References: <87pmfx6h7y.fsf@gnus.org> <8735ct6f6q.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000040113705e8a67d0d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5976"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57804@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 14 19:39:39 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 1oYWMN-0001Rd-MM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 19:39:39 +0200 Original-Received: from localhost ([::1]:56512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYWMM-0008Fu-I0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 13:39:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYWE2-0005JG-Nu for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYWE2-0000rk-8l for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYWE2-0000Yx-3r for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 13:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Sep 2022 17:31: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.16631766542143 (code B ref 57804); Wed, 14 Sep 2022 17:31:02 +0000 Original-Received: (at 57804) by debbugs.gnu.org; 14 Sep 2022 17:30:54 +0000 Original-Received: from localhost ([127.0.0.1]:55989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYWDu-0000YV-8K for submit@debbugs.gnu.org; Wed, 14 Sep 2022 13:30:54 -0400 Original-Received: from mail-ej1-f53.google.com ([209.85.218.53]:42879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYWDs-0000YH-V5 for 57804@debbugs.gnu.org; Wed, 14 Sep 2022 13:30:53 -0400 Original-Received: by mail-ej1-f53.google.com with SMTP id sb3so6781985ejb.9 for <57804@debbugs.gnu.org>; Wed, 14 Sep 2022 10:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=xG14ceh78msz3fGc2zpAXQADLbmyXAFm9blddHXU9v0=; b=cuF3Xsg66AXzxsqDDgWuPInb9T2scbT26GTQzOUUaxqEy9owhZk+dUYUM/KFn3+DqN RBwUos5Vscg693s/oAzYK+lTOVeqR2GoN0w8SZJOOVrqti+1RFfUVRg3CAlpvgFoY6SY LAjxiKwYIHcra6ltGAFie+rPTR4iQ2zn6NXfWwnT0f/dT7pAzE/Mir1EpXlQy62aEdqO GyrE4PMM3mv17HMdSLk7klv6HE86cDxPwg0ncH/4KxmXd2W/5y69n95BIjvlNB5OKgCt BU7I8mxwBi963uMAvfH5Fbuug04Ex6LPiBKQe3PSY7ttrJwL0sZ6QnekGrPmIzXo3WOG KZ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=xG14ceh78msz3fGc2zpAXQADLbmyXAFm9blddHXU9v0=; b=h+iOVQ4zd+mZH1yPS1BcN4A/0U6221jJikuVJq1OagqTi1ZO7YqAwcm0qZlgRzTZwY VDznQQWIAueNAppfGILk1BBWwpVtfjAZ+gq8btDNWPV043Vv0Mr6kgkPfTjkDQf+TdSl /kgEQ3a+EPluR0ZlSm+7ShP+JZHJ+Zez2J1cPpO0M1pMJPOXQnVRRsO2jhEFn0ZyVuaV 2415/Sw8kObxwnzglCZGSnKu5sY/bi+lbdaGdp+YcgJK8bW9H+n91ENwwczK5dR/+2Q3 NyFfnhtzeVaSIUWAV2Y1OtVeLQmNguXFdvIvMJFd8rFxkZN+/yE4vmlY1BruR6YmfbbH aXBg== X-Gm-Message-State: ACgBeo17f+fLRbcgU7oVK+bKXA2kwXbhBSeikh3JoS20QHbjj7V6zsaw d+BMVQc1ftTRO00qkPxU9hAhYBQ5piPAHBebBA== X-Google-Smtp-Source: AA6agR57VSQcW4Lkw39gVyAXSRZmxVLHW8yt/E284gmIXZcjrRQpxVtJ4gM731LdNuM3HMtVYuWNrGAec9M6caWvHTs= X-Received: by 2002:a17:907:7b95:b0:731:113a:d7a2 with SMTP id ne21-20020a1709077b9500b00731113ad7a2mr25411404ejc.377.1663176647117; Wed, 14 Sep 2022 10:30:47 -0700 (PDT) In-Reply-To: <8735ct6f6q.fsf@gnus.org> 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:242494 Archived-At: --00000000000040113705e8a67d0d Content-Type: text/plain; charset="UTF-8" > > > 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. > > That one is too fragile I agree. If "special" means `C-g C-g C-g' then > that is fine in my book. If something gets stuck and doesn't respond > to one "abort this" command, I usually tend to try several times > anyway, and suspect this is the same for a lot of people. > > > Doesn't seem to have any effect here... > > It seems to have some effect with `C-g' after some time. But still > doesn't abort it, only shows some warning, yet doesn't make Emacs > responsive. > > Paul > --00000000000040113705e8a67d0d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> A single `C-g' wouldn't be quite the right = thing, because the user may
> hit `C-g' by accident while font-lo= ck 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.
That one is too fragile I agree. If "special" means `C-g C-g= C-g' then
that is fine in my book. If something gets stuck and does= n't respond
to one "abort this" command, I usually tend to= try several times
anyway, and suspect this is the same for a lot of peo= ple.

> Doesn't seem to have any effect here...

It seem= s to have some effect with `C-g' after some time.=C2=A0 But still
do= esn't abort it, only shows some warning, yet doesn't make Emacs
= responsive.

Paul
--00000000000040113705e8a67d0d--