From 1e8322bb26e4945de460780168732250bbd083d0 Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Fri, 4 Aug 2023 13:01:35 -0700 Subject: [PATCH] Fix handling of 'byte-compile-ignore-files' when nil Before this fix, when 'byte-compile-ignore-files' was nil, 'byte-recompile-directory' would ignore every file (bug#64985). * lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Handle case when 'byte-compile-ignore-files' is nil. --- lisp/emacs-lisp/bytecomp.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 65ccb60726f..d093d95a775 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -1923,7 +1923,9 @@ also be compiled." (let ((directories (list default-directory)) (default-directory default-directory) (ignore-files-regexp - (mapconcat #'identity byte-compile-ignore-files "\\|")) + (if byte-compile-ignore-files + (mapconcat #'identity byte-compile-ignore-files "\\|") + regexp-unmatchable)) (skip-count 0) (fail-count 0) (file-count 0) -- 2.39.2