If I start a long-running process in an emacs shell create by (shell), the shell will be busy for a while. How can I detect that programmatically (i.e., using elisp)?

I tried: get the process by (get-process "shell") and test (process-live-p proc), but it always return t.

1 Answer 1

(defun shell-process-running-child-p (process-name)
  (if (process-running-child-p process-name)
      (print t)
    (print nil)))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.