GNU bug report logs - #19582
25.0.50; [PATCH] Calc: glitches with negation of units

Previous Next

Package: emacs;

Reported by: Wolfgang Jenkner <wjenkner <at> inode.at>

Date: Tue, 13 Jan 2015 14:31:02 UTC

Severity: normal

Tags: fixed, patch

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 19582 <at> debbugs.gnu.org (full text, mbox):

From: Jay Belanger <jay.p.belanger <at> gmail.com>
To: Wolfgang Jenkner <wjenkner <at> inode.at>
Cc: jay.p.belanger <at> gmail.com, 19582 <at> debbugs.gnu.org
Subject: Re: bug#19582: 25.0.50; [PATCH] Calc: glitches with negation of units
Date: Tue, 13 Jan 2015 15:57:04 -0600
> So the issue seems to be this:
>
> In emacs -Q, do `M-x calc' then convert, say 1m, to cm, i.e.,
>
> ' 1 m <return> u c c m <return>
>
> This gives `100 cm' on top of the stack (a plain integer scalar).
>
> Next, start another emacs -Q instance, do `M-x calc' and then, before
> anything else, `M-: (load-library "calc-units")'.
>
> Now the same conversion exercise as before gives `100. cm' on the stack
> instead (a calc float).

Huh.
Thanks.
Well, now I see what you need to use math-equal.

As for the float, I'll see if I can fix that before the next release.




This bug report was last modified 9 years and 86 days ago.

Previous Next


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