From 2a1c6b3dade091e6486d90aa6518d888492e7e1a Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 5 Oct 2026 05:12:26 -0500 Subject: fix(elfeed): load bytecomp before elfeed can load - elfeed.el reads byte-compile-root-dir as it finishes loading. - That variable exists only once bytecomp is loaded. - Without it, requiring elfeed signals void-variable. - The live config loads bytecomp through use-package first. - make test doesn't, so the elfeed helper tests failed. - I require bytecomp in elfeed-config ahead of any elfeed load. --- modules/elfeed-config.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/elfeed-config.el') diff --git a/modules/elfeed-config.el b/modules/elfeed-config.el index f4feef3a..34e90eb1 100644 --- a/modules/elfeed-config.el +++ b/modules/elfeed-config.el @@ -28,6 +28,11 @@ (require 'user-constants) (require 'system-lib) (require 'media-utils) +;; elfeed.el ends with a bare `(unless byte-compile-root-dir ...)'. That +;; variable lives in bytecomp, so loading elfeed (source or .elc) in a +;; session that hasn't loaded bytecomp signals void-variable. I load it here, ahead of +;; any elfeed load, rather than rely on something else having pulled it in. +(require 'bytecomp) (declare-function elfeed "elfeed") (declare-function elfeed-update "elfeed") -- cgit v1.2.3