diff options
author | Basil L. Contovounesios <contovob@tcd.ie> | 2019-07-22 21:57:39 +0100 |
---|---|---|
committer | Basil L. Contovounesios <contovob@tcd.ie> | 2019-08-02 16:33:30 +0300 |
commit | eddf4664d786e16b34f6bd0af238a567feb5012c (patch) | |
tree | c4da65620a382bbe612e7631d51a1044ce38c144 /etc | |
parent | b4b1eda7fbf4c4f3fa6377bd18d1d1a22e6e4b42 (diff) | |
download | emacs-eddf4664d786e16b34f6bd0af238a567feb5012c.tar.gz |
Make gravatar.el more configurable
For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html
* etc/NEWS: Announce changes in gravatar.el user options.
* lisp/image/gravatar.el (gravatar-cache-ttl): Change :type to
number of seconds without changing the default value and while still
accepting other timestamp formats.
(gravatar-rating): Restrict :type to ratings recognized by Gravatar.
(gravatar-size): Allow nil as a value, in which case Gravatar's
default size is used.
(gravatar-default-image, gravatar-force-default): New user options
controlling the Gravatar query parameters 'default' and
'forcedefault', respectively.
(gravatar-base-url): Use HTTPS.
(gravatar--query-string): New helper function to facilitate testing.
(gravatar-build-url): Use it.
* test/lisp/image/gravatar-tests.el (gravatar-size)
(gravatar-default-image, gravatar-force-default)
(gravatar-build-url): New tests.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1788,6 +1788,22 @@ particular when the end of the buffer is visible in the window. Use 'mouse-wheel-mode' instead. Note that 'mouse-wheel-mode' is already enabled by default on most graphical displays. +** Gravatar + ++++ +*** 'gravatar-cache-ttl' is now a number of seconds. +The previously used timestamp format of a list of integers is still +supported, but is deprecated. The default value has not changed. + ++++ +*** 'gravatar-size' can now be nil. +This results in the use of Gravatar's default size of 80 pixels. + ++++ +*** The default fallback gravatar is now configurable. +This is possible using the new user options 'gravatar-default-image' +and 'gravatar-force-default'. + * New Modes and Packages in Emacs 27.1 |