unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Greenberg, Adam" <Adam.Greenberg@FMR.COM>
To: Glenn Morris <rgm@gnu.org>
Subject: bug#14778: 24.3; Woman elapsed time calculation fails.
Date: Wed, 3 Jul 2013 12:11:25 -0400	[thread overview]
Message-ID: <8F6E7A3F1455DF43A98EA4F43D80CFF42580B641E2@MSGRTPCCRC2WIN.DMN1.FMR.COM> (raw)
In-Reply-To: <3wzju3y6fn.fsf@fencepost.gnu.org>

Glen:

Thanks for the quick follow-up.  I researched this further and discovered that the ancient bison-mode.el (http://ftp.sunet.se/pub/gnu/emacs-lisp/incoming/bison-mode.el) that I use includes make-regexp.el and that defines its own time-since function.  The time-date.el time-since delivered with 24.3 is correct.  When I rename the make-regexp.el version woman works as advertised.  Please accept my apologies for wasting your time.

Adam

-----Original Message-----
From: Glenn Morris [mailto:rgm@gnu.org] 
Sent: Wednesday, July 03, 2013 12:06 PM
To: Greenberg, Adam
Cc: 14778@debbugs.gnu.org
Subject: Re: bug#14778: 24.3; Woman elapsed time calculation fails.

"Greenberg, Adam" wrote:

> Emacs reports this error: Invalid time specification whenever I 
> execute woman. For example m-x woman hostname (invoke woman to view 
> the hostname man page).

I cannot reproduce this. Does it happen with emacs -Q?

> The error occurs in the line:
>     (setq time (float-time (time-since start-time)))
>
> The error is that time-since returns the value of a time difference 
> (already a float value) not a time value.

Not for me it doesn't. What does the following return for you:

(time-since before-init-time)

For me it returns eg

(0 123 804775 342000)

What does

C-h f time-since

say?

> In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.9)  
> of 2013-07-01 on vlelayerdev3





      reply	other threads:[~2013-07-03 16:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 12:57 bug#14778: 24.3; Woman elapsed time calculation fails Greenberg, Adam
2013-07-03 16:06 ` Glenn Morris
2013-07-03 16:11   ` Greenberg, Adam [this message]

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=8F6E7A3F1455DF43A98EA4F43D80CFF42580B641E2@MSGRTPCCRC2WIN.DMN1.FMR.COM \
    --to=adam.greenberg@fmr.com \
    --cc=rgm@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).