Replies: 3 comments
-
Not really, because the only time Eldev does is within Anyway, if really needed, we can probably break something out of But do you want to make |
Beta Was this translation helpful? Give feedback.
-
Thanks! I've written a little bit of analysis just to ensure I have captured the requirements correctly, and listed possible options I could think of. I think the general requirement here is (1) to be able to invoke an Emacs subprocess to perform a task while (2) inheriting access to the parent's "libraries", which I define as the For example, in the case described above, the child needs access to both the Emacs provides synchronous and asynchronous fns for req#1, but has no facility to support req#2. In theory, I could Alternatively, the other perhaps more attractive way Or, perhaps Or finally, I could Thoughts? I think I will settle for Thanks! |
Beta Was this translation helpful? Give feedback.
-
Sorry, hard for me, because I don't fully understand your needs and don't feel like investigating more. A few notes:
|
Beta Was this translation helpful? Give feedback.
-
Hi @doublep,
If I have an Emacs process started in an isolated environment, is there an established way to fork a child Emacs process that will inherit the isolated environment of its parent?
I have created a test for CIDER some time ago that it required such handling (parent Emacs created a child Emacs process to act as a socket server), but is still bothering me that I had to pass the
package-user-dir
,load-path
anduser-emacs-directory
to the child Emacs process to inherit the parent's environment:https://github.com/clojure-emacs/cider/blob/94aff28016c63e4567ceaa3ed1bb7ee9d8eedbbb/test/utils/nrepl-tests-utils.el#L76
The purpose was for the parent process to fork a child Emacs with
-l test/nrepl-server-mock.el -f nrepl-server-mock-start
using the parents isolated environment.Thanks,
Beta Was this translation helpful? Give feedback.
All reactions