]> git.eshelyaron.com Git - emacs.git/commit
Display the exit code if the last command failed in Eshell
authorDavide Masserut <dm@mssdvd.com>
Tue, 29 Aug 2023 20:33:48 +0000 (22:33 +0200)
committerJim Porter <jporterbugs@gmail.com>
Sat, 2 Sep 2023 22:40:04 +0000 (15:40 -0700)
commit3d08d0dd80a02419f8301b63bb5663710f4f8ee2
treead7a0223d01f0c183926c52c6fe27bd2bff1f6fd
parent6ae2b74ed20f7c96384ed67981405212d7e2bea2
Display the exit code if the last command failed in Eshell

* lisp/eshell/esh-io.el (eshell-last-command-status): Make
buffer-local.

* lisp/eshell/em-prompt.el (eshell-prompt-function): Insert the exit
code if last command failed.

* test/lisp/eshell/em-prompt-tests.el (em-prompt-test/after-failure):
New test.
(em-prompt-test/next-previous-prompt-1)
(em-prompt-test/forward-backward-matching-input-1): Add a failing
command to tests.

* doc/misc/eshell.texi (Invocation): Document change.

* etc/NEWS: Announce change (bug#65604).
doc/misc/eshell.texi
etc/NEWS
lisp/eshell/em-prompt.el
lisp/eshell/esh-io.el
test/lisp/eshell/em-prompt-tests.el