From fe37a590cc6b9f854e53a0e3665d162b05d01cec Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 26 Oct 2020 05:51:43 -0400 Subject: [PATCH] Set doom--initial-load-path in sandbox Prevents loaded packages miscount (e.g. -1) in dashboard/log in sandbox instance. This occurs because the benchmark line uses a simple heuristic to determine the loaded packages: length of load-path minus the length of doom--initial-load-path (to save on more expensive counting methods). However, in the sandbox, load-path is pre-populated with all packages right from the get-go, so doom--initial-load-path will be incorrect. --- core/autoload/debug.el | 1 + 1 file changed, 1 insertion(+) diff --git a/core/autoload/debug.el b/core/autoload/debug.el index 1bcd42b38..f3003438f 100644 --- a/core/autoload/debug.el +++ b/core/autoload/debug.el @@ -317,6 +317,7 @@ Some items are not supported by the `nsm.el' module." process-environment ',doom--initial-process-environment exec-path ',doom--initial-exec-path init-file-debug t + doom--initial-load-path load-path load-path ',load-path package--init-file-ensured t package-user-dir ,package-user-dir