1

I would like to call a subprocess, and that subprocess has some interactive behavior. Thus, I would emacs to parse the output of the subprocess, ask the user for input, and then hand that input back to the subprocess.

  • Sounds like you want to use something with set-process-sentinel, start-process, set-process-filter, ... See the manual for those functions and also Google for examples. Essentially, the process filter can look for a known string or strings and then offer the user the ability to interact within predefined parameters .... Here is an rsync example of mine where I look for the password prompt using the process filter with predefined regex and then programmatically send the password with process-send-string to continue the subprocess: emacs.stackexchange.com/a/5844/2287 – lawlist Sep 24 '19 at 17:43
  • Thanks, this is just what I was looking for. Example is very helpful. – quackrabbit Sep 24 '19 at 21:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.