diff options
author | Antero Mejr <antero@mailbox.org> | 2023-05-09 20:51:14 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-05-11 16:33:16 +0300 |
commit | f24ea84f430d5ae6fd3fa5373610551f62ce25be (patch) | |
tree | 47901040117df1160679509917493bf6825b9dc7 /etc | |
parent | 44c2befb4a36391f17ee8f3539dee7be62df89f0 (diff) | |
download | emacs-f24ea84f430d5ae6fd3fa5373610551f62ce25be.tar.gz |
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)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -380,6 +380,11 @@ hooks named after the feature name, like 'esh-mode-unload-hook'. * Lisp Changes in Emacs 30.1 ++++ +** New variable 'safe-local-variable-directories'. +This variable names directories in which Emacs will treat all +directory-local variables as safe. + ** New variable 'inhibit-auto-fill' to temporarily prevent auto-fill. ** Functions and variables to transpose sexps |