From 4bd85c9065f4b075190ffa5a721b9191bc84d6e9 Mon Sep 17 00:00:00 2001 From: Andrew Stahlman Date: Sun, 29 Apr 2018 10:39:10 -0700 Subject: [PATCH] Make child process inherit load-path from parent (#27) Ensure that the `load-path` used in the async child process matches the `load-path` in the parent process. I suspect that this is the root cause of issues like https://github.com/astahlman/ob-async/issues/19 and https://github.com/astahlman/ob-async/issues/21. --- ob-async.el | 1 + ob-async.org | 1 + 2 files changed, 2 insertions(+) diff --git a/ob-async.el b/ob-async.el index eefae37..6e81b84 100644 --- a/ob-async.el +++ b/ob-async.el @@ -133,6 +133,7 @@ block." ;; TODO: Put this in a function so it can be overidden ;; Initialize the new Emacs process with org-babel functions (setq exec-path ',exec-path) + (setq load-path ',load-path) (package-initialize) (org-babel-do-load-languages 'org-babel-load-languages ',org-babel-load-languages) (let ((default-directory ,default-directory)) diff --git a/ob-async.org b/ob-async.org index 551a901..54541c6 100644 --- a/ob-async.org +++ b/ob-async.org @@ -835,6 +835,7 @@ ripped straight from the original source for ;; TODO: Put this in a function so it can be overidden ;; Initialize the new Emacs process with org-babel functions (setq exec-path ',exec-path) + (setq load-path ',load-path) (package-initialize) (org-babel-do-load-languages 'org-babel-load-languages ',org-babel-load-languages) (let ((default-directory ,default-directory))