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 <AdoPi@users.noreply.github.com>
This commit is contained in:
parent
5c7294357f
commit
b0f91f6403
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue