Subject: bug#21077: 24.5; Slow printing in inferior python buffer with python-shell-enable-font-lock

From: Ista Zahn <[email-masked]>
Date: Thu, 16 Jul 2015 15:09:19 -0400

On Thu, Jul 16, 2015 at 2:34 PM, Eli Zaretskii <[email-masked]> wrote:
>> From: Ista Zahn <[email-masked]>
>> Date: Thu, 16 Jul 2015 12:42:39 -0400
>>
>> 1. Start emacs with 'emacs -Q'
>> 2. Start inferior python process with 'M-x run-python'
>> 3. Run 'print(list(range(9999)))' in the *Python* buffer
>>
>> Result: emacs grinds to a halt and has to be killed.
>
> No, it doesn't: it just becomes very slow, and you need to wait longer
> for it to finish.  In my case, it took a whopping 14 minutes,

Either way this is not good. Clearly there is something wrong here.
Nitpicking about whether it requires killing emacs or not doesn't seem
helpful to me.

--Ista

and
> produced this in the *Messages* buffer:
>
>   Error during redisplay: (jit-lock-function 52112) signaled (error "Stack overflow in regexp matcher")
>   Error during redisplay: (jit-lock-function 56220) signaled (error "Stack overflow in regexp matcher")
>   Error during redisplay: (jit-lock-function 57879) signaled (error "Stack overflow in regexp matcher")