From 3a9d6071f35eb107fab9e96214c1588727cd082d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 15 May 2025 14:21:00 +0200 Subject: [PATCH] fix: defining as dynamic an already lexical var When invoking straight's API directly. Fix: #8251 --- lisp/doom-straight.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/doom-straight.el b/lisp/doom-straight.el index 390c99175..3ff0a3c4a 100644 --- a/lisp/doom-straight.el +++ b/lisp/doom-straight.el @@ -168,6 +168,9 @@ original state.") (defadvice! doom-straight--no-compute-prefixes-a (fn &rest args) :around #'straight--build-autoloads + (eval-when-compile + (or (require 'loaddefs-gen nil 'noerror) + (require 'autoload))) (let (autoload-compute-prefixes) (apply fn args)))