aboutsummaryrefslogtreecommitdiff
path: root/emacs/notmuch.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.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.el')
-rw-r--r--emacs/notmuch.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 5477bf4a..29b2a9ed 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -416,6 +416,8 @@ Complete list of currently available key bindings:
(add-to-invisibility-spec (cons 'ellipsis t))
(setq truncate-lines t)
(setq buffer-read-only t)
+ (when (boundp 'untrusted-content)
+ (setq untrusted-content t))
(setq imenu-prev-index-position-function
#'notmuch-search-imenu-prev-index-position-function)
(setq imenu-extract-index-name-function