diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-04 16:23:46 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-04 16:23:46 +0200 |
commit | ed15f3954c04e2039a565ca0d0ff810519da8197 (patch) | |
tree | be921a65a4606966805c73484da50bab83fdfcc4 /lisp/emacs-lisp/bytecomp.el | |
parent | 2f2afa0b310bbce43a8703f5467b2638082abdd9 (diff) | |
download | emacs-ed15f3954c04e2039a565ca0d0ff810519da8197.tar.gz emacs-ed15f3954c04e2039a565ca0d0ff810519da8197.tar.bz2 emacs-ed15f3954c04e2039a565ca0d0ff810519da8197.zip |
Ignore .dir-locals-2.el files more
* lisp/emacs-lisp/shadow.el (load-path-shadows-find):
* lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Ignore
.dir-locals-2.el, too (bug#23257).
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 3e65db42421..70999648d47 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -1857,8 +1857,7 @@ also be compiled." (file-readable-p source) (not (string-match "\\`\\.#" file)) (not (auto-save-file-name-p source)) - (not (string-equal dir-locals-file - (file-name-nondirectory source)))) + (not (member source (dir-locals--all-files directory)))) (progn (cl-incf (pcase (byte-recompile-file source force arg) ('no-byte-compile skip-count) |