Variable: trusted-content
trusted-content is a customizable variable defined in files.el.gz.
Value
nil
Documentation
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 naming a file or a directory
by their abbreviated file names:
- 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.
- Otherwise, it is considered a file name.
For example, an entry "~/mycode/" means that Emacs will trust all the
files in the directory "mycode" under your home directory.
This variable can also be set to :all, in which case Emacs will trust
all files, which opens a gaping security hole. Emacs Lisp authors
should note that this value must never be set by a major or minor mode.
This variable was added, or its default value changed, in Emacs 30.1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom trusted-content nil
"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 naming a file or a directory
by their abbreviated file names:
- 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.
- Otherwise, it is considered a file name.
For example, an entry \"~/mycode/\" means that Emacs will trust all the
files in the directory \"mycode\" under your home directory.
This variable can also be set to `:all', in which case Emacs will trust
all files, which opens a gaping security hole. Emacs Lisp authors
should note that this value must never be set by a major or minor mode."
:type '(choice (repeat :tag "List" file)
(const :tag "Trust everything (DANGEROUS!)" :all))
:version "30.1")