mm-decode: stop checking for diff-mode
authorJulien Danjou <julien@danjou.info>
Tue, 1 Feb 2011 16:06:45 +0000 (17:06 +0100)
committerJulien Danjou <julien@danjou.info>
Tue, 1 Feb 2011 16:06:45 +0000 (17:06 +0100)
Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/ChangeLog
lisp/mm-decode.el

index 10c658e..d626e8f 100644 (file)
@@ -1,5 +1,8 @@
 2011-02-01  Julien Danjou  <julien@danjou.info>
 
+       * mm-decode.el (mm-inline-media-tests): Do not check for diff-mode it's
+       standard in Emacs nowadays.
+
        * color.el (color-gradient): Add a color-gradient function.
 
 2011-02-01  Lars Ingebrigtsen  <larsi@gnus.org>
index d7bc882..3909e12 100644 (file)
@@ -223,17 +223,9 @@ before the external MIME handler is invoked."
     ("text/plain" mm-inline-text identity)
     ("text/enriched" mm-inline-text identity)
     ("text/richtext" mm-inline-text identity)
-    ("text/x-patch" mm-display-patch-inline
-     (lambda (handle)
-       ;; If the diff-mode.el package is installed, the function is
-       ;; autoloaded.  Checking (locate-library "diff-mode") would be trying
-       ;; to cater to broken installations.  OTOH checking the function
-       ;; makes it possible to install another package which provides an
-       ;; alternative implementation of diff-mode.  --Stef
-       (fboundp 'diff-mode)))
+    ("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
-     (lambda (handle) (fboundp 'diff-mode)))
+    ("text/x-diff" 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)