[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57804: An infinite loop in a `fontify-region' function causes Emacs
From: |
Lars Ingebrigtsen |
Subject: |
bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely |
Date: |
Wed, 14 Sep 2022 19:25:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Paul Pogonyshev <pogonyshev@gmail.com> writes:
>> For instance, if the user hits `C-g' three times (and Emacs doesn't idle
>> in between), then we disable font-lock in that buffer.
>
> That sounds much better. I know that `C-g' is what to press when Emacs
> is stuck.
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.
>> There's also `max-redisplay-ticks' -- but I'm not sure that would have
>> helped here?
>
> If I add `(setf max-redisplay-ticks 100)' right after entering
> `buggy-mode', it seems to have some effect, but not exactly what I'd
> hope on. I suggest you try and see for yourself, hard to describe
> them.
Doesn't seem to have any effect here...
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Paul Pogonyshev, 2022/09/14
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Lars Ingebrigtsen, 2022/09/14
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Paul Pogonyshev, 2022/09/14
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely,
Lars Ingebrigtsen <=
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Paul Pogonyshev, 2022/09/14
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Eli Zaretskii, 2022/09/14
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Lars Ingebrigtsen, 2022/09/14
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Eli Zaretskii, 2022/09/14
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Ihor Radchenko, 2022/09/14
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Gregory Heytings, 2022/09/14
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Paul Pogonyshev, 2022/09/15
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Gregory Heytings, 2022/09/15
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Paul Pogonyshev, 2022/09/15
- bug#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely, Gregory Heytings, 2022/09/15