diff options
| author | Glenn Morris | 2011-07-01 14:21:09 -0400 |
|---|---|---|
| committer | Glenn Morris | 2011-07-01 14:21:09 -0400 |
| commit | 3de63bf809c2a36a5eae8e7383b2590c5ab1bcf7 (patch) | |
| tree | 65fb2643e428a9abb1888d5305287f724fad137b | |
| parent | d224ac8375ca4fc8402fccf72a3666a9777be197 (diff) | |
| download | emacs-3de63bf809c2a36a5eae8e7383b2590c5ab1bcf7.tar.gz emacs-3de63bf809c2a36a5eae8e7383b2590c5ab1bcf7.zip | |
* lisp/type-break.el (type-break-time-sum): Use dolist.
This avoids using a free variable.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/type-break.el | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 69d6c888271..a05c85f56ce 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-07-01 Glenn Morris <rgm@gnu.org> | 1 | 2011-07-01 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * type-break.el (type-break-time-sum): Use dolist. | ||
| 4 | |||
| 3 | * textmodes/flyspell.el (flyspell-word-search-backward): | 5 | * textmodes/flyspell.el (flyspell-word-search-backward): |
| 4 | Replace CL function. | 6 | Replace CL function. |
| 5 | 7 | ||
diff --git a/lisp/type-break.el b/lisp/type-break.el index a41fb1d423f..2d6960c77bc 100644 --- a/lisp/type-break.el +++ b/lisp/type-break.el | |||
| @@ -1009,13 +1009,10 @@ FRAC should be the inverse of the fractional value; for example, a value of | |||
| 1009 | ;; "low" bits and format the time incorrectly. | 1009 | ;; "low" bits and format the time incorrectly. |
| 1010 | (defun type-break-time-sum (&rest tmlist) | 1010 | (defun type-break-time-sum (&rest tmlist) |
| 1011 | (let ((sum '(0 0 0))) | 1011 | (let ((sum '(0 0 0))) |
| 1012 | (while tmlist | 1012 | (dolist (tem tmlist sum) |
| 1013 | (setq tem (car tmlist)) | ||
| 1014 | (setq tmlist (cdr tmlist)) | ||
| 1015 | (setq sum (time-add sum (if (integerp tem) | 1013 | (setq sum (time-add sum (if (integerp tem) |
| 1016 | (list (floor tem 65536) (mod tem 65536)) | 1014 | (list (floor tem 65536) (mod tem 65536)) |
| 1017 | tem)))) | 1015 | tem)))))) |
| 1018 | sum)) | ||
| 1019 | 1016 | ||
| 1020 | (defun type-break-time-stamp (&optional when) | 1017 | (defun type-break-time-stamp (&optional when) |
| 1021 | (if (fboundp 'format-time-string) | 1018 | (if (fboundp 'format-time-string) |