From b0f91f6403719e85d4636f5ea0e1957ae235c669 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 20 Feb 2023 17:52:56 -0500 Subject: [PATCH] fix: void-variable native-comp-deferred-compilation-deny-list In later versions of Emacs 29, this variable has been renamed without a deprecation alias, causing void-variable errors wherever it is used. Since it could potentially be used outside of Doom, I'll use a variable alias until we formally drop 28 support (not for a long time). Close: #7090 Co-authored-by: AdoPi --- lisp/doom.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/doom.el b/lisp/doom.el index ce585080f..d088520fd 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -583,6 +583,14 @@ Otherwise, `en/disable-command' (in novice.el.gz) is hardcoded to write them to (setq native-comp-async-report-warnings-errors init-file-debug native-comp-warning-on-missing-source init-file-debug) + ;; HACK: native-comp-deferred-compilation-deny-list is replaced in later + ;; versions of Emacs 29, and with no deprecation warning. I alias them to + ;; ensure backwards compatibility for packages downstream that may have not + ;; caught up yet. I avoid marking it obsolete because obsolete warnings are + ;; unimportant to end-users. It's the package devs that should be informed. + (unless (boundp 'native-comp-deferred-compilation-deny-list) + (defvaralias 'native-comp-deferred-compilation-deny-list 'native-comp-jit-compilation-deny-list)) + ;; UX: By default, native-comp uses 100% of half your cores. If you're ;; expecting this this should be no issue, but the sudden (and silent) spike ;; of CPU and memory utilization can alarm folks, overheat laptops, or