Subject: bug#37198: 26.2; Infinite recursion in eshell/clear with em-smart

From: Noam Postavsky <[email-masked]>
Date: Tue, 27 Aug 2019 12:35:58 -0400

forcemerge 31326 37198
quit

Daniel Sockwell <[email-masked]> writes:

> 1) Use the following config:
>
>     (require 'eshell)
>     (require 'em-smart)
>     (add-hook 'eshell-mode-hook 'eshell-smart-initialize)
>
> 2) M-x eshell
>
> 3) Enter `clear` at the eshell prompt
>
>
> Expected behavior:
>
> The contents of the eshell buffer are scrolled by a single page, leaving
> a blank window.
>
>
> Actual behavior:
>
> The contents of the eshell buffer are scrolled by 6,599 lines and the
> message "Error during redisplay: (eval (mode-line-eol-desc)) signaled
> (error "Lisp nesting exceeds ‘max-lisp-eval-depth’")" is echoed.

This is Bug#31326, which is fixed in master (what will be Emacs 27.1).