]> git.eshelyaron.com Git - emacs.git/commit
Fix and improve behavior of 'eshell/clear'
authorJim Porter <jporterbugs@gmail.com>
Fri, 11 Oct 2024 04:03:45 +0000 (21:03 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 1 Nov 2024 13:21:25 +0000 (14:21 +0100)
commitc671f3825ffbdfb4b1ca726bd325de58c52b16f9
tree181b8dcb4b972bbc370b999c5b5e6f908aa1d760
parent1b07e8a4361ebb8f33726f60dd4fc2fe8592d20c
Fix and improve behavior of 'eshell/clear'

* lisp/eshell/esh-mode.el (eshell-clear): New function.
(eshell/clear): Fix incorrect behavior, and do the right thing when
'eshell-scroll-show-maximum-output' is nil.
(eshell/clear-scrollback): Call 'eshell/clear'.

* test/lisp/eshell/esh-mode-tests.el
(esh-mode-test/clear/eshell-command)
(esh-mode-test/clear/eshell-command/erase)
(esh-mode-test/clear/emacs-command)
(esh-mode-test/clear/emacs-command/erase): New tests.

* etc/NEWS: Mention the new 'eshell-command' (bug#73722).

(cherry picked from commit 98e24e369a3f6bed95cdf0b32ee03999f5dfb98b)
etc/NEWS
lisp/eshell/esh-mode.el
test/lisp/eshell/esh-mode-tests.el