gnus-util.el (gnus-float-time): Use 2-arg defalias, since XEmacs 21.4 doesn't support...
[gnus] / lisp / ChangeLog
index ad98a15..250d2e8 100644 (file)
@@ -1,3 +1,22 @@
+2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Simplify use of current-time and friends.
+       * gnus-delay.el (gnus-delay-article):
+       * gnus-sum.el (gnus-summary-read-document):
+       * gnus-util.el (gnus-seconds-today, gnus-seconds-month):
+       * message.el (message-make-expires-date):
+       Omit unnecessary call to current-time.
+       * gnus-util.el (gnus-float-time): Simplify to an alias because
+       time-to-seconds now behaves like float-time with respect to nil arg.
+       (gnus-seconds-year): Don't call current-time twice to get the current
+       time stamp, as this can lead to inconsistent results.
+       * time-date.el (time-to-seconds) [!float-time]:
+       Use current time if arg is nil, to be compatible with float-time.
+       (time-date--day-in-year): New function, with most of the guts of
+       the old time-to-day-in-year.
+       (time-to-day-in-year): Use it.
+       (time-to-days): Use it, to avoid decoding the same time stamp twice.
+
 2014-10-27  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus.el (gnus-mode-line-buffer-identification):