From 3f16c82877c007a6b687d4c0add025c653d211b3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 26 Sep 2022 02:09:20 +0200 Subject: [PATCH] fix(cli): doctor: false positive 'X.elc is out-of-date' warnings The doctor would look for stale byte-code in *all* build directories, which was excessive and produced many false positives for folks who use multiple versions of Emacs or have recently up/downgraded. --- lisp/cli/doctor.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/cli/doctor.el b/lisp/cli/doctor.el index 192643e9e..cc4273d68 100644 --- a/lisp/cli/doctor.el +++ b/lisp/cli/doctor.el @@ -141,7 +141,8 @@ in." (print! (start "Checking for stale elc files...")) (elc-check-dir doom-core-dir) - (elc-check-dir doom-local-dir) + (elc-check-dir doom-modules-dir) + (elc-check-dir (doom-path doom-local-dir "straight" straight-build-dir)) (print! (start "Checking for problematic git global settings...")) (if (executable-find "git")