]> git.eshelyaron.com Git - emacs.git/commit
Make the test for auto-mode-alist from .dir-local.el stricter
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 24 Jul 2021 09:16:15 +0000 (11:16 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 24 Jul 2021 09:16:15 +0000 (11:16 +0200)
commit9ac6ff53b105925400a773a5088c9d0ec5b095a4
tree2b3ed3bd55269eaf3bedec7f95b0783bfd450538
parent59eaa30c90cbd31c829dc383ceecaa7a75951e53
Make the test for auto-mode-alist from .dir-local.el stricter

* lisp/files.el (set-auto-mode--dir-local-valid-p): New function.
(set-auto-mode--apply-alist): Use it as a stricter test.
lisp/files.el
test/lisp/files-resources/.dir-locals.el
test/lisp/files-resources/auto-test.zot1 [new file with mode: 0644]
test/lisp/files-resources/auto-test.zot2 [new file with mode: 0644]
test/lisp/files-resources/auto-test.zot3 [new file with mode: 0644]
test/lisp/files-tests.el