diff options
| author | Basil L. Contovounesios <contovob@tcd.ie> | 2019-07-22 21:49:47 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios <contovob@tcd.ie> | 2019-08-02 16:33:30 +0300 |
| commit | cf569e520ee080b5a913d37d363a5ab5fc38d982 (patch) | |
| tree | aa6da586e8c60fcf0cd62470ef9c26fcc1093b30 /lisp/emacs-lisp/generic.el | |
| parent | 60eb0a4834305e1c2b31b1e817875f3d8d0be5f5 (diff) | |
| download | emacs-cf569e520ee080b5a913d37d363a5ab5fc38d982.tar.gz | |
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.
Diffstat (limited to 'lisp/emacs-lisp/generic.el')
0 files changed, 0 insertions, 0 deletions
