diff options
| author | Paul Eggert | 2011-07-03 23:25:23 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-03 23:25:23 -0700 |
| commit | 08235028a6a355a4b4afe993ac0939137aae5976 (patch) | |
| tree | d443ba00bb4bb511c54f96b525a8d23292f8862e | |
| parent | f34755dce2262f4f7e9d692fe985f03051519cb4 (diff) | |
| download | emacs-08235028a6a355a4b4afe993ac0939137aae5976.tar.gz emacs-08235028a6a355a4b4afe993ac0939137aae5976.zip | |
* emacs-lisp/timer.el (timer--time-less-p): Use time-less-p.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/emacs-lisp/timer.el | 9 |
2 files changed, 2 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index db19df15619..d137c334b07 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | 2011-07-04 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-07-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * emacs-lisp/timer.el (timer-until): Use time-subtract and float-time. | 3 | * emacs-lisp/timer.el (timer-until): Use time-subtract and float-time. |
| 4 | (timer--time-less-p): Use time-less-p. | ||
| 4 | 5 | ||
| 5 | 2011-07-04 Juanma Barranquero <lekktu@gmail.com> | 6 | 2011-07-04 Juanma Barranquero <lekktu@gmail.com> |
| 6 | 7 | ||
diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el index e5d21c35100..0e007ff7176 100644 --- a/lisp/emacs-lisp/timer.el +++ b/lisp/emacs-lisp/timer.el | |||
| @@ -119,14 +119,7 @@ SECS may be either an integer or a floating point number." | |||
| 119 | 119 | ||
| 120 | (defun timer--time-less-p (t1 t2) | 120 | (defun timer--time-less-p (t1 t2) |
| 121 | "Say whether time value T1 is less than time value T2." | 121 | "Say whether time value T1 is less than time value T2." |
| 122 | ;; FIXME just use time-less-p. | 122 | (time-less-p (timer--time t1) (timer--time t2))) |
| 123 | (destructuring-bind (high1 low1 micro1) (timer--time t1) | ||
| 124 | (destructuring-bind (high2 low2 micro2) (timer--time t2) | ||
| 125 | (or (< high1 high2) | ||
| 126 | (and (= high1 high2) | ||
| 127 | (or (< low1 low2) | ||
| 128 | (and (= low1 low2) | ||
| 129 | (< micro1 micro2)))))))) | ||
| 130 | 123 | ||
| 131 | (defun timer-inc-time (timer secs &optional usecs) | 124 | (defun timer-inc-time (timer secs &optional usecs) |
| 132 | "Increment the time set in TIMER by SECS seconds and USECS microseconds. | 125 | "Increment the time set in TIMER by SECS seconds and USECS microseconds. |