GNU bug report logs - #15859
24.3.50; Calc - dimensionless units again

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <winkler <at> gnu.org>

Date: Sun, 10 Nov 2013 23:36:02 UTC

Severity: normal

Found in version 24.3.50

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Roland Winkler <winkler <at> gnu.org>
Cc: 15859 <at> debbugs.gnu.org
Subject: bug#15859: 24.3.50; Calc - dimensionless units again
Date: Wed, 19 Apr 2023 01:07:01 +0200
Roland Winkler <winkler <at> gnu.org> writes:

> Therefore, I believe reverting the changes to calc-convert-units is
> the best thing to do.  Then, any future changes should document the
> use cases they intend to fix or address.

I now tried your originally posted examples (1) and (2) with the old
version of `calc-convert-units' you posted, and they both don't seem to
work as you wish: (1) errors, it just doesn't ask about the old units
before that, and case (2) is also simplified to a plain number.

Are you able to test these cases using that old Calc code?  I first want
to know what are really regressions, and then we can try to find a
solution.  Just going back to the version of `calc-convert-units' you
had posted doesn't seem to do what you want.

BTW, my impression of the intended semantics of
`calc-allow-units-as-numbers' is that an expression that can be
transformed into an equivalent unitless expression will be treated like
a unitless expression, i.e. as a number.  I think this is the opposite
of what you want.

I still agree that the current default behavior is not acceptable in
your examples btw.

TIA,

Michael.




This bug report was last modified 2 years and 50 days ago.

Previous Next


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