From: "Ehud Karni" <ehud@unix.simonwiesel.co.il>
Subject: Patch for timer-relative-time
Date: Wed, 13 Feb 2002 15:21:12 +0200 [thread overview]
Message-ID: <200202131321.g1DDLCB17492@unix.simonwiesel.co.il> (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
next reply other threads:[~2002-02-13 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-13 13:21 Ehud Karni [this message]
2002-02-14 3:13 ` Patch for timer-relative-time Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200202131321.g1DDLCB17492@unix.simonwiesel.co.il \
--to=ehud@unix.simonwiesel.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).