From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely Date: Thu, 15 Sep 2022 19:44:30 +0000 Message-ID: References: <87pmfx6h7y.fsf@gnus.org> <2b58b8f5429a6e3aecda@heytings.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="TbsrZafvZT" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13774"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 57804@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 21:48:13 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 1oYuqK-0003JX-PV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 21:48:13 +0200 Original-Received: from localhost ([::1]:43588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYuqJ-0004lg-B9 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 15:48:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYunG-0003F1-7I for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 15:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYunF-0001Hn-Sm for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 15:45:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYunF-0003TT-JL for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 15:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2022 19:45:01 +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.166327107313307 (code B ref 57804); Thu, 15 Sep 2022 19:45:01 +0000 Original-Received: (at 57804) by debbugs.gnu.org; 15 Sep 2022 19:44:33 +0000 Original-Received: from localhost ([127.0.0.1]:59208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYumn-0003SX-IR for submit@debbugs.gnu.org; Thu, 15 Sep 2022 15:44:33 -0400 Original-Received: from heytings.org ([95.142.160.155]:43042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYuml-0003SP-No for 57804@debbugs.gnu.org; Thu, 15 Sep 2022 15:44:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1663271070; bh=vhM6QvcL1f0RBH/3dTc5b12Qh2WmYzf7aRaOzk8IbLU=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=nE2ukHa1CPGmCMms2+nWqF0/2a1SWK+FnYm73q//+vEIpQArAjnsUdSaHEARnifPY K/IjHRz/ex0W7xlTbatyk/i4CE3h/R2f/BAs/UkmlmthvXw1pUKBazWECkM5jNRAPA y7Pp7dFRsTqJEfcTOX0o3NY08cI6MdBHtqYS8mViyRPD/0RywoXRE9vCZLh2BLuW8X 0bsrZdldwSXQUjqX9AZg57DoWjaaJjsyKMz/a8/09KJ+O+nE5ejZBSZwRr1eO4w15B zXiFvWueS/gfg0x0GRV59iC0eHK/n+blC/8AMxJbqxdAkbD6HAEHFFdo+4mHixWL37 gj0QWnyTGBQNw== In-Reply-To: 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:242640 Archived-At: --TbsrZafvZT Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable >> already told you thrice that a simple way to fix your problem is to set= =20 >> long-line-threshold to a larger value (or to nil). >=20 > Thanks, I added=C2=A0 `(setf long-line-threshold nil)' to Emacs startup= =20 > configuration file a couple of days before. But unless I'm missing=20 > something, this is not a fix, only a workaround. > Why did you immediately set it to nil instead of trying to making it=20 sufficiently large? You said that some lines in the Logview buffer are=20 long, but I bet they are never longer than, say, 100000 characters. As I told you, the general fix will be to adapt Logview to handle locked=20 narrowing, by explicitly unlocking the locked narrowing when it needs to=20 access a larger portion of the buffer. You were somewhat reluctant at=20 that idea. --TbsrZafvZT--