Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: Gnus/5.1299999999999999
Date: Sat, 10 Mar 2012 01:33:41 +0100	[thread overview]
Message-ID: <m37gytnvkq.fsf@stories.gnus.org> (raw)
In-Reply-To: <b4mmx7viftv.fsf@jpl.org>

Katsumi Yamaoka <yamaoka@jpl.org> writes:

> No difference is in Gnus v5.13 nor Emacs 23.3.  Only XEmacs is
> sane.  What I can observe in Emacs's *scratch* buffer are:
>
> 5.13
>  => 5.1299999999999999

Well, that's probably as "correct" as 5.13.  Representing floating point
numbers is tricky.

> (if (featurep 'emacs)
>     (setq gnus-user-agent
> 	  (format "Gnus/5.13%04d %s Emacs/%s (%s)"
> 		  (round (* 10 (string-to-number gnus-version-number)))
> 		  gnus-version
> 		  (mapconcat 'identity
> 			     (nbutlast (split-string emacs-version "\\."))
> 			     ".")
> 		  system-configuration)))

Could `gnus-extended-version' be fixed somehow?  By using, for instance,
%10.8f instead of %s, and then trimming back trailing zeroes?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



  reply	other threads:[~2012-03-10  0:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-05  8:59 Gnus/5.1299999999999999 Katsumi Yamaoka
2012-03-10  0:33 ` Lars Magne Ingebrigtsen [this message]
2013-07-23  5:22   ` Gnus/5.1299999999999999 Katsumi Yamaoka
2013-07-23  6:09     ` Gnus/5.1299999999999999 Katsumi Yamaoka

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m37gytnvkq.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    --cc=yamaoka@jpl.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.
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 NNTP newsgroup(s).