Subject: bug#75861: 31.0.50; calc units error

From: çağlar girit <[email-masked]>
Date: Fri, 31 Jan 2025 09:27:15 +0100

On 2025-01-31 at 02:34:35, Michael Heerdegen wrote:

> çağlar girit via "Bug reports for GNU Emacs, the Swiss army 
> knife of
> text editors" <[email-masked]> writes:
>
>> So perhaps there is a bug somewhere in the Mathematica language
>> implementation, starting at calc-lang.el line 1816, but 
>> difficult for
>> me to find.
>
> AFAIU, this is a more general design problem.  Switching the 
> language
> makes all input (in a broader sense) being interpreted as 
> expression in
> that language.  Like, interpreting the built-in unit 
> definitions.
>
> If you reverse your recipe so that Calc builds the unit table 
> before you
> switch to Mathematica language mode, the issue doesn't appear.
>
>
> Michael.

It seems that a better design would always interpret built-in 
expressions in the default language.  Or better yet warn that the 
units functionality is only available in the default language. 
Since '1 cm' doesn't mean anything in the other languages anyway.

-- 
çög