2

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.

2
(defun shell-process-running-child-p (process-name)
  (interactive)
  (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, privacy policy and cookie policy

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