Variable: trusted-content
trusted-content is a variable defined in compat-30.el.
Value
nil
Documentation
[Compatibility variable for trusted-content, defined in Emacs 30.1. See
(compat) Emacs 30.1' for more details.]
List of files and directories whose content we trust. Be extra careful here
since trusting means that Emacs might execute the code contained within those
files and directories without an explicit request by the user. One important
case when this might happen is when flymake-mode(var)/flymake-mode(fun) is enabled (for example, when
it is added to a mode hook). Each element of the list should be a string: - If
it ends in "/", it is considered as a directory name and means that Emacs should
trust all the files whose name has this directory as a prefix. - else it is
considered as a file name. Use abbreviated file names. For example, an entry
"~/mycode" means that Emacs will trust all the files in your directory "mycode".
This variable can also be set to :all, in which case Emacs will trust all
files, which opens a gaping security hole.
Source Code
;; Defined in ~/.emacs.d/elpa/compat-30.1.0.1/compat-30.el
;;;; Defined in files.el
(compat-defvar trusted-content nil ;; <compat-tests:trusted-content>
"List of files and directories whose content we trust.
Be extra careful here since trusting means that Emacs might execute the
code contained within those files and directories without an explicit
request by the user.
One important case when this might happen is when `flymake-mode' is
enabled (for example, when it is added to a mode hook).
Each element of the list should be a string:
- If it ends in \"/\", it is considered as a directory name and means that
Emacs should trust all the files whose name has this directory as a prefix.
- else it is considered as a file name.
Use abbreviated file names. For example, an entry \"~/mycode\" means
that Emacs will trust all the files in your directory \"mycode\".
This variable can also be set to `:all', in which case Emacs will trust
all files, which opens a gaping security hole."
:risky t)