]> git.eshelyaron.com Git - emacs.git/commit
Add safe-local-variable-directories variable.
authorAntero Mejr <antero@mailbox.org>
Tue, 9 May 2023 20:51:14 +0000 (20:51 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 11 May 2023 13:33:16 +0000 (16:33 +0300)
commitf24ea84f430d5ae6fd3fa5373610551f62ce25be
tree47901040117df1160679509917493bf6825b9dc7
parent44c2befb4a36391f17ee8f3539dee7be62df89f0
Add safe-local-variable-directories variable.

This variable can be set to automatically load risky dir-local
variables from a list of trusted directories.

* lisp/emacs-lisp/files.el (safe-local-variable-directories,
hack-local-variables-filter, hack-local-variables-confirm): New
variable and associated logic.
* test/lisp/files-tests.el
(files-tests-safe-local-variable-directories): Add tests for same.
* doc/emacs/custom.texi (Safe File Variables): Add documentation for
same.
* doc/lispref/variables.texi (File Local Variables): Add documentation
for same.
* etc/NEWS (Lisp Changes in Emacs 30.1): Add news entry for
same.  (Bug#61901)
doc/emacs/custom.texi
doc/lispref/variables.texi
etc/NEWS
lisp/files.el
test/lisp/files-tests.el