Is it possible to send a command to Emacs from an inferior process? For my particular use-case, I would like to instruct Emacs to run the command inferior-ess-r-reload-hook (part of the ESS package) from an R session (an interactive programming language) that was launched as a subprocess of Emacs.

Possibly related:

  • 1
    emacs.stackexchange.com/a/54161/2370 is your answer. Maybe, you can use the system command from R.
    – Tobias
    Commented Feb 19, 2020 at 16:07
  • I think that the answer in emacs.stackexchange.com/a/54161/2370 is specific to the Emacs server, correct?
    – dpritch
    Commented Feb 19, 2020 at 18:46
  • 1
    You can use any Emacs as server with server-start. You can even give the server the name of the R session and tell R to contact that specific server.
    – Tobias
    Commented Feb 19, 2020 at 18:54


Your Answer

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

Browse other questions tagged or ask your own question.