GNU bug report logs - #57804
An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Wed, 14 Sep 2022 15:07:01 UTC

Severity: normal

Tags: wontfix

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gregory Heytings <gregory <at> heytings.org>
To: Paul Pogonyshev <pogonyshev <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 57804 <at> debbugs.gnu.org
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 part 1 (text/plain, inline)]
>> already told you thrice that a simple way to fix your problem is to set 
>> long-line-threshold to a larger value (or to nil).
> 
> Thanks, I added  `(setf long-line-threshold nil)' to Emacs startup 
> configuration file a couple of days before. But unless I'm missing 
> something, this is not a fix, only a workaround.
>

Why did you immediately set it to nil instead of trying to making it 
sufficiently large?  You said that some lines in the Logview buffer are 
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 
narrowing, by explicitly unlocking the locked narrowing when it needs to 
access a larger portion of the buffer.  You were somewhat reluctant at 
that idea.

This bug report was last modified 2 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.