Do not set `trusted-content` in major modes
authorStefan Kangas <stefankangas@gmail.com>
Sun, 26 Jan 2025 13:53:49 +0000 (14:53 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 31 Jan 2025 00:50:22 +0000 (01:50 +0100)
commit5485ea6aef91c65a0ce300347db3c0ac138ad550
tree27d026d71c3aed9a01c05c906fd0a1bfb2f3bfe3
parentd11488fd6fb72acd9f9356b95b2f905c59a1095d
Do not set `trusted-content` in major modes

* lisp/progmodes/elisp-mode.el (lisp-interaction-mode):
* lisp/ielm.el (inferior-emacs-lisp-mode): Do not set `trusted-content.
* lisp/ielm.el (ielm):
* lisp/simple.el (get-scratch-buffer-create): Set `trusted-content` here
instead.
* lisp/files.el (trusted-content): Doc fix; warn against setting this
option to :all in a major or mode mode.
Problem reported by Max Nikulin <manikulin@gmail.com>.
etc/NEWS
lisp/files.el
lisp/ielm.el
lisp/progmodes/elisp-mode.el
lisp/simple.el