]> git.eshelyaron.com Git - emacs.git/commit
When waiting for a process in Eshell, consult its status
authorJim Porter <jporterbugs@gmail.com>
Sun, 26 Mar 2023 23:55:24 +0000 (16:55 -0700)
committerJim Porter <jporterbugs@gmail.com>
Thu, 24 Aug 2023 05:18:52 +0000 (22:18 -0700)
commitb9917f11521d47426330d79c65f9726c8fd7f8f7
tree2eb6df99d21305dfa5e6406a633446c37ded2c93
parenta7c13f535fce9890cc7e10d0cf4a62c2d2f8411f
When waiting for a process in Eshell, consult its status

This should be functionally the same as the previous implementation in
most cases (which consulted its membership in 'eshell-process-list'),
but is more flexible.  It's now possible to wait for processes that
aren't in 'eshell-process-list'.

Additionally, use 'process-live-p' instead of examining
'process-status' in a few places.  This is simpler, and a bit more
correct too for certain types of processes (though it likely doesn't
matter in practice).

* lisp/eshell/esh-io.el (eshell-close-target)
(eshell-output-object-to-target)
* lisp/eshell/esh-proc.el (eshell-process-interact): Use
'process-live-p'.
(eshell-wait-for-process): Use 'process-live-p' and remove reference
to 'eshell-process-list'.
lisp/eshell/esh-io.el
lisp/eshell/esh-proc.el