summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2023-08-04 13:01:35 -0700
committerJim Porter <jporterbugs@gmail.com>2023-08-05 10:14:15 -0700
commit1e8322bb26e4945de460780168732250bbd083d0 (patch)
tree9610748b9261950c9326b8f4bd66c7de19c13f54 /lisp/emacs-lisp
parent2695af297e8811d98f3082013f5bf4a5d0281efe (diff)
downloademacs-1e8322bb26e4945de460780168732250bbd083d0.tar.gz
emacs-1e8322bb26e4945de460780168732250bbd083d0.tar.bz2
emacs-1e8322bb26e4945de460780168732250bbd083d0.zip
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.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el4
1 files changed, 3 insertions, 1 deletions
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)