Mercurial > emacs
comparison lisp/gnus/gravatar.el @ 112451:98ad7c9e56a3
gnus-html.el (gnus-html-image-fetched): Don't kill the temporary buffer after being called. It's apparently being killed by url.el, and killing it made point move to end-of-buffer in a random buffer.
shr.el (shr-image-fetched): Ditto.
shr.el (shr-image-fetched): Avoid having point move in the article buffer.
gnus-html.el (gnus-html-image-fetched): Kill the buffer anyway, and fix the bug in url-http.el instead.
shr.el (shr-image-fetched): Ditto.
gravatar.el (gravatar-retrieve): Be silent when retrieving.
gnus-gravatar.el (gnus-gravatar-insert): Don't move point around in the article buffer.
(gnus-gravatar-insert): Use blank space from the current buffer to avoid breaking text properties. This makes X-Sent updating work again.
gnus-art.el (gnus-article-read-summary-keys): Don't call disabled commands.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Mon, 24 Jan 2011 04:10:19 +0000 |
parents | b1eac6d41a93 |
children |
comparison
equal
deleted
inserted
replaced
112449:5e6007430c1e | 112451:98ad7c9e56a3 |
---|---|
106 (defun gravatar-retrieve (mail-address cb &optional cbargs) | 106 (defun gravatar-retrieve (mail-address cb &optional cbargs) |
107 "Retrieve MAIL-ADDRESS gravatar and call CB on retrieval. | 107 "Retrieve MAIL-ADDRESS gravatar and call CB on retrieval. |
108 You can provide a list of argument to pass to CB in CBARGS." | 108 You can provide a list of argument to pass to CB in CBARGS." |
109 (let ((url (gravatar-build-url mail-address))) | 109 (let ((url (gravatar-build-url mail-address))) |
110 (if (gravatar-cache-expired url) | 110 (if (gravatar-cache-expired url) |
111 (url-retrieve url | 111 (let ((args (list url |
112 'gravatar-retrieved | 112 'gravatar-retrieved |
113 (list cb (when cbargs cbargs))) | 113 (list cb (when cbargs cbargs))))) |
114 (when (> (length (if (featurep 'xemacs) | |
115 (cdr (split-string (function-arglist 'url-retrieve))) | |
116 (help-function-arglist 'url-retrieve))) | |
117 4) | |
118 (setq args (nconc args (list t)))) | |
119 (apply #'url-retrieve args)) | |
114 (apply cb | 120 (apply cb |
115 (with-temp-buffer | 121 (with-temp-buffer |
116 (mm-disable-multibyte) | 122 (mm-disable-multibyte) |
117 (url-cache-extract (url-cache-create-filename url)) | 123 (url-cache-extract (url-cache-create-filename url)) |
118 (gravatar-data->image)) | 124 (gravatar-data->image)) |