diff options
| author | Basil L. Contovounesios | 2019-07-22 21:57:39 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2019-08-02 16:33:30 +0300 |
| commit | eddf4664d786e16b34f6bd0af238a567feb5012c (patch) | |
| tree | c4da65620a382bbe612e7631d51a1044ce38c144 /etc | |
| parent | b4b1eda7fbf4c4f3fa6377bd18d1d1a22e6e4b42 (diff) | |
| download | emacs-eddf4664d786e16b34f6bd0af238a567feb5012c.tar.gz emacs-eddf4664d786e16b34f6bd0af238a567feb5012c.zip | |
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. | |||
| 1788 | Use 'mouse-wheel-mode' instead. Note that 'mouse-wheel-mode' is | 1788 | Use 'mouse-wheel-mode' instead. Note that 'mouse-wheel-mode' is |
| 1789 | already enabled by default on most graphical displays. | 1789 | already enabled by default on most graphical displays. |
| 1790 | 1790 | ||
| 1791 | ** Gravatar | ||
| 1792 | |||
| 1793 | +++ | ||
| 1794 | *** 'gravatar-cache-ttl' is now a number of seconds. | ||
| 1795 | The previously used timestamp format of a list of integers is still | ||
| 1796 | supported, but is deprecated. The default value has not changed. | ||
| 1797 | |||
| 1798 | +++ | ||
| 1799 | *** 'gravatar-size' can now be nil. | ||
| 1800 | This results in the use of Gravatar's default size of 80 pixels. | ||
| 1801 | |||
| 1802 | +++ | ||
| 1803 | *** The default fallback gravatar is now configurable. | ||
| 1804 | This is possible using the new user options 'gravatar-default-image' | ||
| 1805 | and 'gravatar-force-default'. | ||
| 1806 | |||
| 1791 | 1807 | ||
| 1792 | * New Modes and Packages in Emacs 27.1 | 1808 | * New Modes and Packages in Emacs 27.1 |
| 1793 | 1809 | ||