Subject: Re: bug#31326: 27.0.50; eshell/clear exceeds max-lisp-eval-depth

From: Noam Postavsky <[email-masked]>
Date: Tue, 01 May 2018 08:21:20 -0400

retitle 31326 eshell/clear goes into infinite loop with eshell-smart-initialize
found 31326 25
tags 31326 + confirmed
quit

Jonathan Kyle Mitchell <[email-masked]> writes:

> The eshell/clear elisp function seems to go into an infinite loop before
> ending in an error when the eshell smart display functionality is
> enabled in eshell-mode-hook. Several "Error during redisplay" messages
> are printed to *Messages* buffer.
>
> Steps to reproduce:
> 1. ./emacs -Q
> 2. In the scratch buffer evaluate:
> (require 'em-smart)
> (add-hook 'eshell-mode-hook 'eshell-smart-initialize)
> 4. M-x eshell
> 5. type "clear" in eshell and press RET

This reproduces back to 25.3; it doesn't happen in 24.5, but "clear"
seems to do nothing in that version.  I caught a backtrace (attached)
with M-x toggle-debug-on-quit and quickly hitting C-g.