Fix the behaviour of 'byte-compile-ignore-files'

* lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Negate the
'string-match-p' check.  (Bug#59139)
This commit is contained in:
Philip Kaludercic 2022-11-15 11:03:58 +01:00
parent 345bfd376e
commit 11cb810356

View file

@ -1941,11 +1941,10 @@ also be compiled."
;; This file is a subdirectory. Handle them differently.
(or (null arg) (eq 0 arg)
(y-or-n-p (concat "Check " source "? ")))
(setq directories (nconc directories (list source)))
;; Directory is requested to be ignored
(string-match-p
(regexp-opt byte-compile-ignore-files)
source)
(not (string-match-p
(regexp-opt byte-compile-ignore-files)
source))
(setq directories (nconc directories (list source))))
;; It is an ordinary file. Decide whether to compile it.
(if (and (string-match emacs-lisp-file-regexp source)