* gravatar.el (gravatar-retrieve): Be silent when retrieving.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 24 Jan 2011 00:32:09 +0000 (01:32 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 24 Jan 2011 00:32:09 +0000 (01:32 +0100)
lisp/ChangeLog
lisp/gravatar.el

index 21fb2c0..ad2726f 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-24  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gravatar.el (gravatar-retrieve): Be silent when retrieving.
+
 2011-01-23  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-html.el (gnus-html-image-fetched): Kill the buffer anyway, and
index 158347f..cb857fc 100644 (file)
@@ -108,9 +108,15 @@ If no image available, return 'error."
 You can provide a list of argument to pass to CB in CBARGS."
   (let ((url (gravatar-build-url mail-address)))
     (if (gravatar-cache-expired url)
-        (url-retrieve url
-                      'gravatar-retrieved
-                      (list cb (when cbargs cbargs)))
+       (let ((args (list url
+                         'gravatar-retrieved
+                         (list cb (when cbargs cbargs)))))
+         (when (> (length (if (featurep 'xemacs)
+                              (cdr (split-string (function-arglist 'url-retrieve)))
+                            (help-function-arglist 'url-retrieve)))
+                  4)
+           (setq args (nconc args (list t))))
+         (apply #'url-retrieve args))
       (apply cb
                (with-temp-buffer
                  (mm-disable-multibyte)