Port new time stamp handling to Emacs 23.2.

This fix is for Gnus.  Problem reported by Katsumi Yamaoka.
* calendar/time-date.el (time-add, time-subtract, time-less-p):
Use eval-and-compile, not eval-when-compile.
This commit is contained in:
Paul Eggert 2014-11-17 22:44:27 -08:00
parent 5c249e2a04
commit b3cb91e07c
2 changed files with 8 additions and 1 deletions

View 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.
* calendar/time-date.el (time-add, time-subtract, time-less-p):
Use eval-and-compile, not eval-when-compile.
2014-11-18 Daiki Ueno <ueno@gnu.org>
* epg.el (epg-context-set-passphrase-callback)

View 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)