unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14406: [PATCH] Timer docs say "nanoseconds" where they should say "microseconds"
@ 2013-05-15  2:00 Kelly Dean
  2013-05-17  4:10 ` Paul Eggert
  0 siblings, 1 reply; 2+ messages in thread
From: Kelly Dean @ 2013-05-15  2:00 UTC (permalink / raw)
  To: 14406

[-- Attachment #1: Type: text/plain, Size: 103 bytes --]

The third element of the list returned by make_lisp_time is microseconds, so the timer docs are wrong.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: timer-docstring-units-bug.patch --]
[-- Type: text/x-diff; name="timer-docstring-units-bug.patch", Size: 874 bytes --]

--- emacs-24.3/lisp/emacs-lisp/timer.el
+++ emacs-24.3/lisp/emacs-lisp/timer.el
@@ -119,7 +119,7 @@
 	  (floor (mod next-sec-psec 1000000)))))
 
 (defun timer-relative-time (time secs &optional usecs psecs)
-  "Advance TIME by SECS seconds and optionally USECS nanoseconds
+  "Advance TIME by SECS seconds and optionally USECS microseconds
 and PSECS picoseconds.  SECS may be either an integer or a
 floating point number."
   (let ((delta (if (floatp secs)
@@ -134,7 +134,7 @@
   (time-less-p (timer--time t1) (timer--time t2)))
 
 (defun timer-inc-time (timer secs &optional usecs psecs)
-  "Increment the time set in TIMER by SECS seconds, USECS nanoseconds,
+  "Increment the time set in TIMER by SECS seconds, USECS microseconds,
 and PSECS picoseconds.  SECS may be a fraction.  If USECS or PSECS are
 omitted, they are treated as zero."
   (setf (timer--time timer)

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

* bug#14406: [PATCH] Timer docs say "nanoseconds" where they should say "microseconds"
  2013-05-15  2:00 bug#14406: [PATCH] Timer docs say "nanoseconds" where they should say "microseconds" Kelly Dean
@ 2013-05-17  4:10 ` Paul Eggert
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggert @ 2013-05-17  4:10 UTC (permalink / raw)
  To: Kelly Dean; +Cc: 14406-done

Thanks; I installed that as trunk bzr 112620.





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

end of thread, other threads:[~2013-05-17  4:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-15  2:00 bug#14406: [PATCH] Timer docs say "nanoseconds" where they should say "microseconds" Kelly Dean
2013-05-17  4:10 ` Paul Eggert

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).