From 39489f782e436a490d1bec32d7ed9b7bcdacda24 Mon Sep 17 00:00:00 2001 From: Jonathan Kyle Mitchell Date: Wed, 2 May 2018 23:09:55 -0500 Subject: [PATCH] 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. --- lisp/eshell/esh-mode.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)))) -- 2.39.2