]> git.eshelyaron.com Git - emacs.git/commit
; Mark interactive Eshell output as such after inserting into the buffer
authorJim Porter <jporterbugs@gmail.com>
Thu, 17 Oct 2024 21:30:31 +0000 (14:30 -0700)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Oct 2024 18:51:04 +0000 (20:51 +0200)
commite1138a7bfc2406ff35d94fe95382dbd4efd25b1d
tree91b8dee9067c45a0a02a879009c50e4a0658d19b
parentbc5409b33ec58fec56180d4f6dbe9f1972de1de3
; Mark interactive Eshell output as such after inserting into the buffer

This avoids adding the "output" text properties to strings that may live
past the call to 'eshell-interactive-filter'.

* lisp/eshell/esh-mode.el (eshell-interactive-output-filter): New
function...
(eshell-interactive-print): ... call it.
(eshell-interactive-filter): Update docstring.

* lisp/eshell/esh-proc.el (eshell-interactive-process-filter)
(eshell-sentinel): Call 'eshell-interactive-output-filter'.

(cherry picked from commit 83e3ed651dca46214855552aa062cfbde019b04a)
lisp/eshell/esh-mode.el
lisp/eshell/esh-proc.el