]> git.eshelyaron.com Git - emacs.git/commitdiff
bytecomp.el (byte-recompile-directory): Fix negated ignore logic
authorNicholas Vollmer <iarchivedmywholelife@gmail.com>
Tue, 8 Nov 2022 00:57:34 +0000 (19:57 -0500)
committerPhilip Kaludercic <philipk@posteo.net>
Wed, 9 Nov 2022 08:50:38 +0000 (09:50 +0100)
Previous logic would only compile files which matched the
byte-compile-ignore-files regular expression.  (Bug#59115)

lisp/emacs-lisp/bytecomp.el

index 4d258dab96e746e794246a2daaa1a446183c3079..c685e5087f879a53b18931eb0fc071189719c0b5 100644 (file)
@@ -1955,9 +1955,9 @@ also be compiled."
                         (not (auto-save-file-name-p source))
                         (not (member source (dir-locals--all-files directory)))
                         ;; File 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)))
                    (progn (cl-incf
                            (pcase (byte-recompile-file source force arg)
                              ('no-byte-compile skip-count)