From 97c0dcc2c328fcc791333e149418c26096043758 Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Sat, 2 Nov 2024 22:21:36 +1100 Subject: [PATCH] fix: early-init with DOOMPROFILE set Recent changes to early-init.el accidentally moved some arguments intended for `load` to an inner `let`, which means only the last argument gets passed to `load`. This results in ``` > Debugger entered--Lisp error: (wrong-type-argument stringp nosuffix) > load(nosuffix) > (or (load (let ((windows? (memq system-type '(ms-dos windows-nt cygwin)))) (expand-file-name... ``` when starting Doom (or running a doomscript) with DOOMPROFILE set. Move these arguments back out of the `let`. Amend: 9ae7aa1122781c8b4353fad049bc7b5cea1b0638 --- early-init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/early-init.el b/early-init.el index 247b6092c..d1a4c2a27 100644 --- a/early-init.el +++ b/early-init.el @@ -89,8 +89,8 @@ emacs-major-version) (or (if windows? (getenv-internal "LOCALAPPDATA")) (getenv-internal "XDG_DATA_HOME") - "~/.local/share")) - 'noerror (not init-file-debug) 'nosuffix)) + "~/.local/share"))) + 'noerror (not init-file-debug) 'nosuffix) (user-error "Profiles not initialized yet; run 'doom sync' first")))) ;; PERF: When `load'ing or `require'ing files, each permutation of