diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-11-17 22:44:27 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-11-17 22:44:51 -0800 |
commit | b3cb91e07c26a3f83f684d9f7248c4492bf8fcc1 (patch) | |
tree | 4a365002cb7118cf3a343da0a56e6482c8c159ef /lisp/calendar/time-date.el | |
parent | 5c249e2a0470b1bc53d10b5f4cf303922933e280 (diff) | |
download | emacs-b3cb91e07c26a3f83f684d9f7248c4492bf8fcc1.tar.gz |
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.
Diffstat (limited to 'lisp/calendar/time-date.el')
-rw-r--r-- | lisp/calendar/time-date.el | 2 |
1 files changed, 1 insertions, 1 deletions
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) |