]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the behaviour of 'byte-compile-ignore-files'
authorPhilip Kaludercic <philipk@posteo.net>
Tue, 15 Nov 2022 10:03:58 +0000 (11:03 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 17 Nov 2022 19:55:04 +0000 (20:55 +0100)
* lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Negate the
'string-match-p' check.  (Bug#59139)

lisp/emacs-lisp/bytecomp.el

index c685e5087f879a53b18931eb0fc071189719c0b5..c81c42e042870362e7e2e938d90455ddde861f2c 100644 (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)