aboutsummaryrefslogtreecommitdiff
path: root/emacs/notmuch-hello.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-hello.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-hello.el')
-rw-r--r--emacs/notmuch-hello.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 15ba7c78..67c805a8 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -760,7 +760,9 @@ The screen may be customized via `\\[customize]'.
Complete list of currently available key bindings:
\\{notmuch-hello-mode-map}"
- (setq notmuch-buffer-refresh-function #'notmuch-hello-update))
+ (setq notmuch-buffer-refresh-function #'notmuch-hello-update)
+ (when (boundp 'untrusted-content)
+ (setq untrusted-content t)))
;;; Inserters