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

From: Eli Zaretskii <[email-masked]>
Date: Thu, 16 Jul 2015 21:34:20 +0300

> 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, 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")