From: Paul Eggert Date: Tue, 18 Nov 2014 06:44:27 +0000 (-0800) Subject: Port new time stamp handling to Emacs 23.2. X-Git-Tag: emacs-25.0.90~2635^2~428 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b3cb91e07c26a3f83f684d9f7248c4492bf8fcc1;p=emacs.git 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. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2670a66a7c7..feb93854eea 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2014-11-18 Paul Eggert + + 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 * epg.el (epg-context-set-passphrase-callback) diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index a9c30f41f6a..e7a8cc7eb25 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el @@ -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)