From 516d96634b253f11238aaaf8ef8f859d011057d7 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sun, 27 Apr 2025 21:26:11 +0200 Subject: [PATCH] (mm-display-inline-fontify): Set trust after major mode. --- lisp/gnus/mm-view.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index 35230ec2f84..197b238e321 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el @@ -502,7 +502,6 @@ If MODE is not set, try to find mode automatically." (setq coding-system (mm-find-buffer-file-coding-system))) (setq text (buffer-string)))) (with-temp-buffer - (trust-set-buffer-trust) (insert (cond ((eq charset 'gnus-decoded) (with-current-buffer (mm-handle-buffer handle) (buffer-string))) @@ -536,6 +535,7 @@ If MODE is not set, try to find mode automatically." ;; really associates buffer with a file (bug#39190). (delay-mode-hooks (set-auto-mode)) (setq mode major-mode))) + (trust-set-buffer-trust) ;; Do not fontify if the guess mode is fundamental. (when (and (not (eq major-mode 'fundamental-mode)) mm-inline-font-lock) -- 2.39.5