* lisp/type-break.el (type-break-time-sum): Use dolist.

This avoids using a free variable.
This commit is contained in:
Glenn Morris 2011-07-01 14:21:09 -04:00
parent d224ac8375
commit 3de63bf809
2 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,7 @@
2011-07-01 Glenn Morris <rgm@gnu.org>
* type-break.el (type-break-time-sum): Use dolist.
* textmodes/flyspell.el (flyspell-word-search-backward):
Replace CL function.

View file

@ -1009,13 +1009,10 @@ FRAC should be the inverse of the fractional value; for example, a value of
;; "low" bits and format the time incorrectly.
(defun type-break-time-sum (&rest tmlist)
(let ((sum '(0 0 0)))
(while tmlist
(setq tem (car tmlist))
(setq tmlist (cdr tmlist))
(dolist (tem tmlist sum)
(setq sum (time-add sum (if (integerp tem)
(list (floor tem 65536) (mod tem 65536))
tem))))
sum))
tem))))))
(defun type-break-time-stamp (&optional when)
(if (fboundp 'format-time-string)