]> git.eshelyaron.com Git - emacs.git/commit
Don't superfluously emit prompts when terminating processes in Eshell
authorJim Porter <jporterbugs@gmail.com>
Thu, 24 Feb 2022 04:43:38 +0000 (20:43 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 24 Feb 2022 09:35:54 +0000 (10:35 +0100)
commitbe496f942cb1a6b9a4b31ae6098cb09166793fec
treea55b583e356c2e1a90c49c094893f07da515a99b
parentaedb74b2940cffa56c26c142c4bb8c2a7a21839f
Don't superfluously emit prompts when terminating processes in Eshell

* lisp/eshell/esh-proc.el (eshell-kill-process-function): Only reset
the prompt if PROC is writing to the terminal.
(eshell-sentinel): Only write the exit message if PROC is writing to
the terminal (bug#54136).

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-pipeline)
(esh-proc-test/kill-pipeline-head)
(esh-proc-test/kill-background-process): New tests.
lisp/eshell/esh-proc.el
test/lisp/eshell/esh-proc-tests.el