aboutsummaryrefslogtreecommitdiff
path: root/emacs/notmuch-tree.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2025-03-12 06:36:21 -0300
committerDavid Bremner <david@tethera.net>2025-03-14 08:51:02 -0300
commitdf4c1b5be769effb2ef7bc85c8bb8e09fb8f43fc (patch)
tree10bcc3a142eb6ba25862e3b4e86772d7d990a102 /emacs/notmuch-tree.el
parent5802f5d6269172222a6fccf5908eae833014917b (diff)
Set 'untrusted-content' to t in all modes
Instead of trying to guess in which modes this is safe not to set in, let's just set it in all of them. Background (added by db): untrusted-content was added in Emacs 29.3 and is currently set by Gnus and used by org-mode to prevent certain unsafe operations. I think the intent is to use it for blocking more unsafe operations in the future.
Diffstat (limited to 'emacs/notmuch-tree.el')
-rw-r--r--emacs/notmuch-tree.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 301ffd6e..aa0d92a7 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -1095,6 +1095,8 @@ Complete list of currently available key bindings:
(hl-line-mode 1))
(setq buffer-read-only t)
(setq truncate-lines t)
+ (when (boundp 'untrusted-content)
+ (setq untrusted-content t))
(when notmuch-tree-outline-enabled (notmuch-tree-outline-mode 1)))
(defvar notmuch-tree-process-exit-functions nil