From: Jonathan Kyle Mitchell Date: Thu, 3 May 2018 04:09:55 +0000 (-0500) Subject: Fix infinite recursion in eshell/clear (Bug#31326) X-Git-Tag: emacs-27.0.90~4693 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=39489f782e436a490d1bec32d7ed9b7bcdacda24;p=emacs.git Fix infinite recursion in eshell/clear (Bug#31326) * lisp/eshell/esh-mode.el (eshell/clear): Bind eshell-input-filter-functions to nil to prevent entries like eshell-smart-display-setup from causing infinite recursion. --- diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index bbb74c3d86f..9f854c7d907 100644 --- a/lisp/eshell/esh-mode.el +++ b/lisp/eshell/esh-mode.el @@ -884,8 +884,7 @@ If SCROLLBACK is non-nil, clear the scrollback contents." (interactive) (if scrollback (eshell/clear-scrollback) - (let ((eshell-input-filter-functions - (remq 'eshell-add-to-history eshell-input-filter-functions))) + (let ((eshell-input-filter-functions nil)) (insert (make-string (window-size) ?\n)) (eshell-send-input))))