]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix gnus-html-image-cache-ttl FIXME
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 26 Apr 2022 00:57:50 +0000 (17:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 26 Apr 2022 20:54:38 +0000 (13:54 -0700)
* lisp/gnus/gnus-html.el (gnus-html-image-cache-ttl):
Make it a seconds count.

etc/NEWS
lisp/gnus/gnus-html.el

index 19434ec85b790688cf482062cbf1697060f0fe07..a2818c8bf79b6edf6b61dcb09f1af3aca33f3b38 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -940,6 +940,12 @@ representation as emojis.
 Configuration is very similar to the notmuch and namazu backends.  It
 supports the unified search syntax.
 
+---
+*** gnus-html-image-cache-ttl is now a seconds count.
+Formerly it was a pair of numbers (A B) that represented 65536*A + B,
+to cater to older Emacs implementations that lacked bignums.
+The older form still works but is undocumented.
+
 ** EIEIO
 
 +++
index 8b2200af54f6e42f417e5675f7f28f1e672bab53..87f3ee6362316501cfaf7acc33800088b47c3190 100644 (file)
 (require 'help-fns)
 (require 'url-queue)
 
-(defcustom gnus-html-image-cache-ttl (days-to-time 7)
-  "Time used to determine if we should use images from the cache."
-  :version "24.1"
+(defcustom gnus-html-image-cache-ttl (time-convert (days-to-time 7) 'integer)
+  "Number of seconds used to determine if we should use images from the cache."
+  :version "29.1"
   :group 'gnus-art
-  ;; FIXME hardly the friendliest type.  The allowed value is actually
-  ;; any time value, but we are assuming no-one cares about USEC and
-  ;; PSEC here.  It would be better to make it a number of seconds.
-  :type '(choice (cons integer integer)
-                (list integer integer)))
+  :type 'number)
 
 (defcustom gnus-html-image-automatic-caching t
   "Whether automatically cache retrieve images."