From 19c46db99b89acd8496392c7cfcf9e6cd9214659 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 22 Nov 2020 15:46:06 -0500 Subject: gnus: Prefer mm-handle-media-type over direct access Message-Id: <20201122204609.12604-2-kyle@kyleam.com> --- piem-gnus.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piem-gnus.el b/piem-gnus.el index 4afa747..237eeb1 100644 --- a/piem-gnus.el +++ b/piem-gnus.el @@ -69,7 +69,7 @@ message itself if it looks like a patch." (delq nil (mapcar (lambda (handle) (and (listp handle) - (member (caar (cdr handle)) + (member (mm-handle-media-type handle) '("text/x-diff" "text/x-patch")) (with-temp-buffer (mm-display-inline handle) -- cgit v1.2.3