unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kelly Dean <kellydeanch@yahoo.com>
To: 14406@debbugs.gnu.org
Subject: bug#14406: [PATCH] Timer docs say "nanoseconds" where they should say "microseconds"
Date: Tue, 14 May 2013 19:00:35 -0700 (PDT)	[thread overview]
Message-ID: <1368583235.16255.YahooMailClassic@web141103.mail.bf1.yahoo.com> (raw)

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

             reply	other threads:[~2013-05-15  2:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15  2:00 Kelly Dean [this message]
2013-05-17  4:10 ` bug#14406: [PATCH] Timer docs say "nanoseconds" where they should say "microseconds" Paul Eggert

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=1368583235.16255.YahooMailClassic@web141103.mail.bf1.yahoo.com \
    --to=kellydeanch@yahoo.com \
    --cc=14406@debbugs.gnu.org \
    /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).