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: 9ae7aa1122
This commit is contained in:
Marien Zwart
2024-11-02 22:21:36 +11:00
committed by Henrik Lissner
parent 5dcba2f89f
commit 97c0dcc2c3

View File

@ -89,8 +89,8 @@
emacs-major-version) emacs-major-version)
(or (if windows? (getenv-internal "LOCALAPPDATA")) (or (if windows? (getenv-internal "LOCALAPPDATA"))
(getenv-internal "XDG_DATA_HOME") (getenv-internal "XDG_DATA_HOME")
"~/.local/share")) "~/.local/share")))
'noerror (not init-file-debug) 'nosuffix)) 'noerror (not init-file-debug) 'nosuffix)
(user-error "Profiles not initialized yet; run 'doom sync' first")))) (user-error "Profiles not initialized yet; run 'doom sync' first"))))
;; PERF: When `load'ing or `require'ing files, each permutation of ;; PERF: When `load'ing or `require'ing files, each permutation of