From: Lars Ingebrigtsen Date: Thu, 11 Feb 2016 05:56:28 +0000 (+1100) Subject: Remove XEmacs compat code from gravatar.el X-Git-Tag: emacs-26.0.90~2637 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f5a801ca4558ecf74d7637535978b548167edf18;p=emacs.git Remove XEmacs compat code from gravatar.el * lisp/gnus/gravatar.el: Remove XEmacs compat code from gravatar.el. --- diff --git a/lisp/gnus/gravatar.el b/lisp/gnus/gravatar.el index 86940034821..81503b7d90a 100644 --- a/lisp/gnus/gravatar.el +++ b/lisp/gnus/gravatar.el @@ -26,6 +26,7 @@ (require 'url) (require 'url-cache) +(require 'image) (defgroup gravatar nil "Gravatar." @@ -91,20 +92,12 @@ (when (search-forward "\n\n" nil t) (buffer-substring (point) (point-max)))))) -(eval-and-compile - (cond ((featurep 'xemacs) - (require 'gnus-xmas) - (defalias 'gravatar-create-image 'gnus-xmas-create-image)) - (t - (require 'image) - (defalias 'gravatar-create-image 'create-image)))) - (defun gravatar-data->image () "Get data of current buffer and return an image. If no image available, return 'error." (let ((data (gravatar-get-data))) (if data - (gravatar-create-image data nil t) + (create-image data nil t) 'error))) (autoload 'help-function-arglist "help-fns")