time-date.el (time-add, time-subtract, time-less-p): Use eval-and-compile, not eval...
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 18 Nov 2014 08:01:59 +0000 (08:01 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 18 Nov 2014 08:01:59 +0000 (08:01 +0000)
lisp/ChangeLog
lisp/time-date.el

index 83f87d3..d794d4a 100644 (file)
@@ -1,3 +1,10 @@
+2014-11-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Port new time stamp handling to Emacs 23.2.
+       This fix is for Gnus.  Problem reported by Katsumi Yamaoka.
+       * time-date.el (time-add, time-subtract, time-less-p):
+       Use eval-and-compile, not eval-when-compile.
+
 2014-11-17  Albert Krewinkel  <albert@zeitkraut.de>
 
        * message.el (message-valid-fqdn-regexp): Add non-internaional new
index a9c30f4..e7a8cc7 100644 (file)
@@ -215,7 +215,7 @@ TIME should be either a time value or a date-time string."
 ;;;###autoload(autoload 'time-subtract "time-date")
 ;;;###autoload(autoload 'time-less-p "time-date")
 
-(eval-when-compile
+(eval-and-compile
   (when (not (and (fboundp 'time-add) (subrp (symbol-function 'time-add))))
 
     (defun time-add (t1 t2)