]> git.eshelyaron.com Git - emacs.git/commit
Do not set `trusted-content` in major modes
authorStefan Kangas <stefankangas@gmail.com>
Sun, 26 Jan 2025 13:53:49 +0000 (14:53 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 11:11:21 +0000 (12:11 +0100)
commitcd5dd1831c726925d215483a83a3a3f56eb785e1
tree6719eaaac3b20e424550b49ea23c3ff6dbe5140c
parent42b6c6ea8a9204a5bdb1d034bb4c438f9f863d76
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>.

(cherry picked from commit 5485ea6aef91c65a0ce300347db3c0ac138ad550)
lisp/files.el
lisp/ielm.el
lisp/progmodes/elisp-mode.el
lisp/simple.el