]> git.eshelyaron.com Git - emacs.git/commit
Split out exit code parts of 'eshell-close-handles' into a new function
authorJim Porter <jporterbugs@gmail.com>
Tue, 24 Jan 2023 01:21:57 +0000 (17:21 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jul 2024 10:32:46 +0000 (12:32 +0200)
commit4a5cc876c9eed8e1f0d493ab63a99434821f620e
tree875356d430dd3ee13703d3b6b66b2b97ff8270e5
parent20e788ae73d52e5829cc82ef99bb597229dd73b8
Split out exit code parts of 'eshell-close-handles' into a new function

* lisp/eshell/esh-cmd.el (eshell-last-command-status)
(eshell-last-command-result): Move here from esh-io.el.
(eshell-set-exit-info): New function, extracted from
'eshell-close-handles'.

* lisp/eshell/esh-io.el (eshell-close-handles): Make old calling
convention obsolete.  Update callers to use 'eshell-set-exit-info' as
needed.

(cherry picked from commit 39c704e03de59a1cc46494fb71426e7a7fe8013d)
lisp/eshell/em-alias.el
lisp/eshell/esh-cmd.el
lisp/eshell/esh-io.el
lisp/eshell/esh-proc.el