emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55117: closed ([PROPOSED] Fix gnus-html-image-cache-ttl FIXME)


From: GNU bug Tracking System
Subject: bug#55117: closed ([PROPOSED] Fix gnus-html-image-cache-ttl FIXME)
Date: Tue, 26 Apr 2022 21:02:02 +0000

Your message dated Tue, 26 Apr 2022 14:00:53 -0700
with message-id <1fd99a1c-3e58-4f6c-e8bb-e0e609cd797e@cs.ucla.edu>
and subject line Re: bug#55117: [PROPOSED] Fix gnus-html-image-cache-ttl FIXME
has caused the debbugs.gnu.org bug report #55117,
regarding [PROPOSED] Fix gnus-html-image-cache-ttl FIXME
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
55117: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55117
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PROPOSED] Fix gnus-html-image-cache-ttl FIXME Date: Mon, 25 Apr 2022 18:00:13 -0700
* lisp/gnus/gnus-html.el (gnus-html-image-cache-ttl):
Make it a seconds count.
---
 etc/NEWS               |  6 ++++++
 lisp/gnus/gnus-html.el | 10 +++-------
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 40e914cd32..f24177cf55 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -935,6 +935,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
 
 +++
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index 8b2200af54..41c488a2b5 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -40,15 +40,11 @@
 (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."
+(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 "24.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."
-- 
2.35.1




--- End Message ---
--- Begin Message --- Subject: Re: bug#55117: [PROPOSED] Fix gnus-html-image-cache-ttl FIXME Date: Tue, 26 Apr 2022 14:00:53 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0
Thanks for reviewing. I pushed it and am closing the bug report.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]