[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for timer-relative-time
From: |
Ehud Karni |
Subject: |
Patch for timer-relative-time |
Date: |
Wed, 13 Feb 2002 15:21:12 +0200 |
On 2001-05-14 I submitted a patch for `timer-relative-time' that dealt
with case of negative increment. (see -
http://mail.gnu.org/pipermail/bug-gnu-emacs/2001-May/005721.html )
It did not get into emacs 21.1, I hope someone (Eli ?) will put it in
before emacs 21.2 is out.
Ehud.
cd ~/site-lisp/
diff -c /usr/local/share/emacs/21.1/lisp/timer.el
/procom/home/ehud/site-lisp/timer.el
*** /usr/local/share/emacs/21.1/lisp/timer.el Sun Jul 15 19:15:34 2001
--- /procom/home/ehud/site-lisp/timer.el Wed Feb 13 13:15:29 2002
***************
*** 117,128 ****
;; Normalize
(setq low (+ low (/ micro 1000000)))
(setq micro (mod micro 1000000))
(setq high (+ high (/ low 65536)))
(setq low (logand low 65535))
-
(list high low (and (/= micro 0) micro))))
(defun timer-inc-time (timer secs &optional usecs)
"Increment the time set in TIMER by SECS seconds and USECS microseconds.
SECS may be a fraction."
--- 117,132 ----
;; Normalize
(setq low (+ low (/ micro 1000000)))
+ (if (< micro 0)
+ (setq low (1- low)))
(setq micro (mod micro 1000000))
(setq high (+ high (/ low 65536)))
+ (if (< low 0)
+ (setq high (1- high)))
(setq low (logand low 65535))
(list high low (and (/= micro 0) micro))))
(defun timer-inc-time (timer secs &optional usecs)
"Increment the time set in TIMER by SECS seconds and USECS microseconds.
SECS may be a fraction."
Exit 1
Diff finished at Wed Feb 13 13:17:21
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
mailto:address@hidden Better Safe Than Sorry
- Patch for timer-relative-time,
Ehud Karni <=