1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-14 16:50:58 +00:00

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.
This commit is contained in:
Jonathan Kyle Mitchell 2018-05-02 23:09:55 -05:00 committed by Noam Postavsky
parent c249e17324
commit 39489f782e

View File

@ -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))))