Function: gravatar-retrieve-synchronously
gravatar-retrieve-synchronously is an autoloaded and byte-compiled
function defined in gravatar.el.gz.
Signature
(gravatar-retrieve-synchronously MAIL-ADDRESS)
Documentation
Synchronously retrieve a gravatar for MAIL-ADDRESS.
Value is either an image descriptor, or the symbol error if the
retrieval failed.
Source Code
;; Defined in /usr/src/emacs/lisp/image/gravatar.el.gz
;;;###autoload
(defun gravatar-retrieve-synchronously (mail-address)
"Synchronously retrieve a gravatar for MAIL-ADDRESS.
Value is either an image descriptor, or the symbol `error' if the
retrieval failed."
(let ((url nil))
(gravatar-build-url mail-address (lambda (u) (setq url u)))
(while (not url)
(sleep-for 0.01))
(with-current-buffer (url-retrieve-synchronously url t)
(gravatar-retrieved nil #'identity))))