summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-12-12 15:50:28 +0800
committerPo Lu <luangruo@yahoo.com>2021-12-12 15:50:28 +0800
commit64ea1a178c6cb3a436eeb6783237bd603be4f5e4 (patch)
treede1491c84e233736e90f9d00c564557f42fb7316
parent8a0734329a4faf0b45627763af74222bdd0ec143 (diff)
downloademacs-64ea1a178c6cb3a436eeb6783237bd603be4f5e4.tar.gz
Fix eshell for systems that do not have subprocesses
* lisp/eshell/esh-cmd.el (eshell-eval-command): Use `eshell-processp' instead of `processp'.
-rw-r--r--lisp/eshell/esh-cmd.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el
index a2464ad4a98..213b7ab2893 100644
--- a/lisp/eshell/esh-cmd.el
+++ b/lisp/eshell/esh-cmd.el
@@ -945,12 +945,12 @@ at the moment are:
;; In that case, unwrap the value before checking the delimiter
;; value.
(if (and val
- (not (processp val))
+ (not (eshell-processp val))
(not (eq val t)))
(error "Unmatched delimiter: %S" val)
;; Eshell-command expect a list like (<process>) to know if the
;; command should be async or not.
- (or (and (processp val) delim) val)))))
+ (or (and (eshell-processp val) delim) val)))))
(defun eshell-resume-command (proc status)
"Resume the current command when a process ends."