]> git.eshelyaron.com Git - emacs.git/commit
Improve implementations of some Eshell output filter functions
authorJim Porter <jporterbugs@gmail.com>
Tue, 4 Jun 2024 05:06:49 +0000 (22:06 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Jun 2024 05:31:51 +0000 (07:31 +0200)
commitc5ee05744955eb7166b2222379290926f1913ac8
treeb0679aa57fc84a69d305f0d55a9fbfe701b928b6
parentc732c4857dd04d64c7874d7fab6faa0bc5387d1a
Improve implementations of some Eshell output filter functions

* lisp/eshell/esh-mode.el (eshell-postoutput-scroll-to-bottom): Use
'get-buffer-window-list' for simplicity.
(eshell-handle-control-codes): Use 're-search-forward'; this way is much
faster.

* test/lisp/eshell/esh-mode-tests.el: New file.

(cherry picked from commit 15f515c7a37f29117ff123821265a760ff0d040d)
lisp/eshell/esh-mode.el
test/lisp/eshell/esh-mode-tests.el [new file with mode: 0644]