]> git.eshelyaron.com Git - emacs.git/commitdiff
Make application/x-patch inlinable in mm-decode.el
authorBasil L. Contovounesios <contovob@tcd.ie>
Thu, 11 Apr 2019 13:42:20 +0000 (14:42 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sun, 12 May 2019 11:27:40 +0000 (12:27 +0100)
* lisp/gnus/mm-decode.el (mm-inline-media-tests, mm-inlined-types):
Include application/x-patch as a synonym of text/x-patch and
text/x-diff. (bug#35236)

lisp/gnus/mm-decode.el

index 3f255419e7e9094d26a900a43c52d9d696a3c6eb..93b57706f85aadbc054fa435309463e6112ea6ac 100644 (file)
@@ -236,6 +236,7 @@ before the external MIME handler is invoked."
     ("text/x-patch" mm-display-patch-inline identity)
     ;; In case mime.types uses x-diff (as does Debian's mime-support-3.40).
     ("text/x-diff" mm-display-patch-inline identity)
+    ("application/x-patch" mm-display-patch-inline identity)
     ("application/emacs-lisp" mm-display-elisp-inline identity)
     ("application/x-emacs-lisp" mm-display-elisp-inline identity)
     ("application/x-shellscript" mm-display-shell-script-inline identity)
@@ -303,8 +304,9 @@ before the external MIME handler is invoked."
 
 (defcustom mm-inlined-types
   '("image/.*" "text/.*" "message/delivery-status" "message/rfc822"
-    "message/partial" "message/external-body" "application/emacs-lisp"
-    "application/x-emacs-lisp"
+    "message/partial" "message/external-body"
+    "application/x-patch"
+    "application/emacs-lisp" "application/x-emacs-lisp"
     "application/pgp-signature" "application/x-pkcs7-signature"
     "application/pkcs7-signature" "application/x-pkcs7-mime"
     "application/pkcs7-mime"