GNU bug report logs - #12687
24.2.50; calc volume units conversion

Previous Next

Package: emacs;

Reported by: Edmund Kademan <ed <at> kademan.org>

Date: Fri, 19 Oct 2012 22:52:02 UTC

Severity: normal

Found in version 24.2.50

Done: Jay Belanger <jay.p.belanger <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 12687-done <at> debbugs.gnu.org (full text, mbox):

From: Jay Belanger <jay.p.belanger <at> gmail.com>
To: Edmund Kademan <ed <at> kademan.org>
Cc: jay.p.belanger <at> gmail.com, 12687-done <at> debbugs.gnu.org
Subject: Re: bug#12687: 24.2.50; calc volume units conversion
Date: Fri, 19 Oct 2012 23:18:00 -0500
> emacs -Q
> C-x **    ;start calc
> 'gal RET  ;enter 1 gallon
> uc        ;try to convert to new units
>
> At this point calc should prompt for new units, but it does not.

Oh; thanks for catching this!

> A workaround for me is to redefine the math-get-standard-units
> function:

That works for this case (but for the wrong reasons ... for example, if
you convert gallons to liters and then convert gallons again, it won't
offer liters as a default).  The problem was that `math-extract-units'
wasn't dealing with powers of units (and the standard units for volume
are m^3).  This has been fixed in bzr.

Thanks again,
Jay




This bug report was last modified 12 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.