]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/time.el (world-clock--sort-entries): Avoid compiler warning.
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 Jun 2025 14:21:18 +0000 (17:21 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:13:35 +0000 (10:13 +0200)
(cherry picked from commit 994f816ca8bac187e5f0d32cdf7343899acd7d7b)

lisp/time.el

index c1c803f4a5a04b2861f007f44d19ce67c08773d2..881e94f7304652624d4bb61149897c4ad03b3fdd 100644 (file)
@@ -592,8 +592,8 @@ See `world-clock'."
 (defvar world-clock--timer nil
   "The current world clock timer.")
 
-(defun world-clock--sort-entries (tzlist time)
-  "Sort TZLIST according to `world-clock-sort-order' at a given TIME."
+(defun world-clock--sort-entries (tzlist timeval)
+  "Sort TZLIST according to `world-clock-sort-order' at a given TIMEVAL."
   (pcase world-clock-sort-order
     ((pred null) tzlist)
     ((or (and (pred stringp) format)
@@ -601,9 +601,9 @@ See `world-clock'."
           ,(and (pred booleanp) reverse)))
      (sort tzlist
           :key (lambda (entry)
-                 (format-time-string format time (car entry)))
+                 (format-time-string format timeval (car entry)))
           :reverse reverse))
-    ((pred functionp) (funcall world-clock-sort-order tzlist time))
+    ((pred functionp) (funcall world-clock-sort-order tzlist timeval))
     (_ (error "Invalid `world-clock-sort-order': `%s'"
              world-clock-sort-order))))