branch: externals/relint commit c792bde7e84c5d13727e287a195898262c8f7b11 Author: Mattias Engdegård <matti...@acm.org> Commit: Mattias Engdegård <matti...@acm.org>
Perform Emacs version check at compile time --- relint.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relint.el b/relint.el index 10f5d74..4cb5219 100644 --- a/relint.el +++ b/relint.el @@ -2392,7 +2392,7 @@ TARGET is the file or directory to use for a repeated run." (defun relint--tree-files (dir) (let ((re (rx bos (not (any ".")) (* anything) ".el" eos))) - (if (>= emacs-major-version 27) + (if (eval-when-compile (>= emacs-major-version 27)) (directory-files-recursively dir re nil ;; Save time by not pointlessly descending into huge .git directories.