]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix infinite recursion in eshell/clear (Bug#31326)
authorJonathan Kyle Mitchell <kyle@jonathanmitchell.org>
Thu, 3 May 2018 04:09:55 +0000 (23:09 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 11 Jul 2018 01:22:52 +0000 (21:22 -0400)
* 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

index bbb74c3d86f96e1ede3597f486cc914a9c8d663c..9f854c7d907e09207e1ed2af1e720fedfee1cd44 100644 (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))))