aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorDavide Masserut2023-08-29 22:33:48 +0200
committerJim Porter2023-09-02 15:40:04 -0700
commit3d08d0dd80a02419f8301b63bb5663710f4f8ee2 (patch)
treead7a0223d01f0c183926c52c6fe27bd2bff1f6fd /etc
parent6ae2b74ed20f7c96384ed67981405212d7e2bea2 (diff)
downloademacs-3d08d0dd80a02419f8301b63bb5663710f4f8ee2.tar.gz
emacs-3d08d0dd80a02419f8301b63bb5663710f4f8ee2.zip
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).
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5c11b6b9ac7..81ef0d6cedb 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -370,6 +370,9 @@ to load the edited aliases.
370Running 'rgrep' in Eshell now uses the Emacs grep facility instead of 370Running 'rgrep' in Eshell now uses the Emacs grep facility instead of
371calling external rgrep. 371calling external rgrep.
372 372
373+++
374*** If a command exits abnormally, the Eshell prompt now shows its exit code.
375
373** Pcomplete 376** Pcomplete
374 377
375--- 378---