From 0ff85015f8734f81f71fe188e156b2aea2a86981 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 11 Feb 2021 23:33:28 -0500 Subject: [PATCH] s/defadvice!/advice-add in comp config block Part 2 of 811099282. The latest build of native-comp appears to eagerly load comp very early, so defadvice! won't be defined when this block runs, causing this error. --- core/core.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core.el b/core/core.el index 1c6c461e3..932687e20 100644 --- a/core/core.el +++ b/core/core.el @@ -165,11 +165,11 @@ users).") (concat local-dir-re ".*/jupyter-channel\\.el\\'")))) ;; Default to using all cores, rather than half of them, since we compile ;; things ahead-of-time in a non-interactive session. - (defadvice! doom--comp-use-all-cores-a () - :override #'comp-effective-async-max-jobs + (defun doom--comp-use-all-cores-a () (if (zerop comp-async-jobs-number) (setq comp-num-cpus (doom-num-cpus)) - comp-async-jobs-number))) + comp-async-jobs-number)) + (advice-add #'comp-effective-async-max-jobs :override #'doom--comp-use-all-cores-a)) ;;