From: Julien Danjou Date: Tue, 1 Feb 2011 16:06:45 +0000 (+0100) Subject: mm-decode: stop checking for diff-mode X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=05dbdb660ffa497f5fce23f35c8e45d7a0843d39;p=gnus mm-decode: stop checking for diff-mode Signed-off-by: Julien Danjou --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 10c658e93..d626e8fca 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2011-02-01 Julien Danjou + * 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 diff --git a/lisp/mm-decode.el b/lisp/mm-decode.el index d7bc882a8..3909e1218 100644 --- a/lisp/mm-decode.el +++ b/lisp/mm-decode.el @@ -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)