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.
This commit is contained in:
Jim Porter 2023-08-04 13:01:35 -07:00
parent 2695af297e
commit 1e8322bb26

View file

@ -1923,7 +1923,9 @@ also be compiled."
(let ((directories (list default-directory)) (let ((directories (list default-directory))
(default-directory default-directory) (default-directory default-directory)
(ignore-files-regexp (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) (skip-count 0)
(fail-count 0) (fail-count 0)
(file-count 0) (file-count 0)