]> git.eshelyaron.com Git - emacs.git/commit
DRY in gravatar.el
authorBasil L. Contovounesios <contovob@tcd.ie>
Mon, 22 Jul 2019 20:49:47 +0000 (21:49 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Fri, 2 Aug 2019 13:33:30 +0000 (16:33 +0300)
commitcf569e520ee080b5a913d37d363a5ab5fc38d982
treeaa6da586e8c60fcf0cd62470ef9c26fcc1093b30
parent60eb0a4834305e1c2b31b1e817875f3d8d0be5f5
DRY in gravatar.el

For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html
* lisp/image/gravatar.el (gravatar-data->image): Remove.
(gravatar-retrieve, gravatar-retrieve-synchronously): Reuse
url-fetch-from-cache and gravatar-retrieved to reduce duplication.
(gravatar-retrieved): Only cache buffer if url-current-object is
non-nil and return result of callback.  This affords reusing this
function in cached URL buffers.
lisp/image/gravatar.el