all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Patch for timer-relative-time
@ 2002-02-13 13:21 Ehud Karni
  2002-02-14  3:13 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Ehud Karni @ 2002-02-13 13:21 UTC (permalink / raw)


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:ehud@unix.simonwiesel.co.il          Better  Safe  Than  Sorry

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Patch for timer-relative-time
  2002-02-13 13:21 Patch for timer-relative-time Ehud Karni
@ 2002-02-14  3:13 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2002-02-14  3:13 UTC (permalink / raw)
  Cc: emacs-devel

This has been installed in the development sources.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-02-14  3:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-13 13:21 Patch for timer-relative-time Ehud Karni
2002-02-14  3:13 ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.