From 87a0d9d2e1e14d1ffc344076c4fc9ca10e3da1b6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 1 Dec 2024 01:20:45 -0500 Subject: [PATCH] fix: void-variable native-comp-deferred-compilation-deny-list Error occurs on Emacs 30.0.92 or newer, because this variable (what it's aliased to, at least) was moved to comp-run.el, upstream. Ref: emacsmirror/emacs@e6a955d24268 --- lisp/doom.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/doom.el b/lisp/doom.el index 6fc94a41f..5a79fbcb8 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -644,6 +644,10 @@ of 'doom sync' or 'doom gc'." (apply fn args))) (after! comp + ;; HACK: On Emacs 30.0.92, `native-comp-jit-compilation-deny-list' was moved + ;; to comp-run. See emacsmirror/emacs@e6a955d24268. Doom forces straight + ;; to consult this variable when building packages. + (require 'comp-run nil t) ;; HACK Disable native-compilation for some troublesome packages (mapc (doom-partial #'add-to-list 'native-comp-deferred-compilation-deny-list) (list "/seq-tests\\.el\\'"