GNU bug report logs - #68442
Inconsistency in calc embedded

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ypo <ypuntot@HIDDEN>; dated Sun, 14 Jan 2024 08:01:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Jan 2024 08:00:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 14 03:00:44 2024
Received: from localhost ([127.0.0.1]:41602 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rOvQC-0007du-73
	for submit <at> debbugs.gnu.org; Sun, 14 Jan 2024 03:00:44 -0500
Received: from lists.gnu.org ([2001:470:142::17]:51990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ypuntot@HIDDEN>) id 1rOdGl-0003Xu-VT
 for submit <at> debbugs.gnu.org; Sat, 13 Jan 2024 07:37:48 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ypuntot@HIDDEN>) id 1rOdGh-0007Tu-KZ
 for bug-gnu-emacs@HIDDEN; Sat, 13 Jan 2024 07:37:44 -0500
Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ypuntot@HIDDEN>) id 1rOdGg-0002qJ-26
 for bug-gnu-emacs@HIDDEN; Sat, 13 Jan 2024 07:37:43 -0500
Received: by mail-wr1-x432.google.com with SMTP id
 ffacd0b85a97d-3368d1c7b23so6262655f8f.0
 for <bug-gnu-emacs@HIDDEN>; Sat, 13 Jan 2024 04:37:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1705149459; x=1705754259; darn=gnu.org;
 h=subject:content-language:to:from:user-agent:mime-version:date
 :message-id:from:to:cc:subject:date:message-id:reply-to;
 bh=UtjGebWZABdPMntpfXzEJdGn0tZIkWQQiKIn4oH0JyQ=;
 b=UzDx2cEMLiqh5C7by9qNffoMEErVW3n3o22bIdhy/BRFBieHm8BdI6QVQGEh5RaIOv
 DQVlioely51wkj4fqg4jPbFg1Zz/fxpktI5S0ixdFFSzDzR3S3gdTvLMTWIfsLhcQkuO
 J57FvAWqYuCREjxj9YY7lZHjkugfINFJX8lKDb/MfKXGWgBnVtxaI3vf16ENU+Qgcdcv
 hdi6JXOg/D+g8e/UnhhuTIaA5DZrN2rAXq5JOLTZT0ZIudw21zzZoq12ZKCFiYP35q7b
 IH/pRpFFWsu1WUr4YjQGjyPSj1eOq033IGlFIoJAdgZid7v79hp9OmgtN9nvJO5Vvxti
 79ZQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1705149459; x=1705754259;
 h=subject:content-language:to:from:user-agent:mime-version:date
 :message-id:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=UtjGebWZABdPMntpfXzEJdGn0tZIkWQQiKIn4oH0JyQ=;
 b=gLNZUN/PKGHfSjEiEAU9zgzzSMkhL5rw8jOaDfOntDNZM9rccKSAw7gTD7pQm61MAe
 OuTyCn3MZJ1aiCSd0kFU23on40BPh8PCf4btdFNC7ZJW81/qfl3CEIJv1Zo2LtcU0FiL
 EfBNFgpEWcfOSnXNqZw+xdDfx8vxBB+jMcKunLFKKxilDxge6D+nj2MnPI4B2VTIFQNE
 EkdDzC12SUp8yfPOyjxuM3oOsfpD9ice2ITE3AD3p0fHtZVMkftiI61IQTFtKpTBFFdz
 LSDp0QJdkSsPPSLD0Xi4Cs8zJgYsRnesbuTfr42IuiUua+ETziSzpeHxs5boURSoMwFe
 x5Ag==
X-Gm-Message-State: AOJu0Yz4FDobLoyI1BbjXifPvRxaI4GzvT8sxaEk3E+i4uvfK4xZJ4zM
 NJUDe84ErxowzOmpxnWDxp3e1Wcsy9s=
X-Google-Smtp-Source: AGHT+IHzderh9aJRbfYUxdHYeoFga6SOdlkaYR9YvOBKNzCp8SaNzM4BBmgWb5W5+Qg/5CnIQ3fVlQ==
X-Received: by 2002:adf:eb92:0:b0:337:9f43:93dc with SMTP id
 t18-20020adfeb92000000b003379f4393dcmr157137wrn.141.1705149459523; 
 Sat, 13 Jan 2024 04:37:39 -0800 (PST)
Received: from [192.168.0.97] (static-87-230-7-89.ipcom.comunitel.net.
 [89.7.230.87]) by smtp.gmail.com with ESMTPSA id
 b6-20020adfee86000000b00337478efa4fsm6608557wro.60.2024.01.13.04.37.39
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 13 Jan 2024 04:37:39 -0800 (PST)
Content-Type: multipart/alternative;
 boundary="------------f3SuqcBM8T8JpBCb1CIfPmoB"
Message-ID: <69c32a94-bb4a-1cea-c2b6-3491841ec613@HIDDEN>
Date: Sat, 13 Jan 2024 13:37:37 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.15.1
From: Ypo <ypuntot@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Language: en-GB
Subject: Inconsistency in calc embedded
Received-SPF: pass client-ip=2a00:1450:4864:20::432;
 envelope-from=ypuntot@HIDDEN; helo=mail-wr1-x432.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_FONT_FACE_BAD=0.001, HTML_MESSAGE=0.001, LOTS_OF_MONEY=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 14 Jan 2024 03:00:40 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

This is a multi-part message in MIME format.
--------------f3SuqcBM8T8JpBCb1CIfPmoB
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi


I am using calc embedded, in an org-mode buffer:

I write:

Total := 76121 EUR

Bastidor402 := 33.5124% * Total =>

(1)


After doing:

C-x * a

C-x * u (on the formula (1))


I get:

Bastidor402 := 33.5124% Total => 25509.974004 EUR


Which is correct, but the original formula (1) is changed:
Instead of

Bastidor402 := 33.5124% * Total =>
(1)

Emacs changes it to:
Bastidor402 := 33.5124% Total =>
(2)


I delete the result, and I do again C-x * u (on the formula (2)), and I get:

Bastidor402 := 33.5124 % Total => 33.5124 % 76121 EUR


Which is another change in the original formula (2). Now we have:


Bastidor402 := 33.5124 % Total =>

(3)


and a wrong result.


--------------f3SuqcBM8T8JpBCb1CIfPmoB
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html data-lt-installed="true">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    <p><font face="DejaVu Sans Mono">Hi</font></p>
    <p><font face="DejaVu Sans Mono"><br>
      </font></p>
    <font face="DejaVu Sans Mono">I am using calc embedded, in an
      org-mode buffer:</font><br>
    <font face="DejaVu Sans Mono"> </font><br>
    <font face="DejaVu Sans Mono">I write:</font><br>
    <font face="DejaVu Sans Mono"> </font><br>
    <font face="DejaVu Sans Mono">Total := 76121 EUR</font><br>
    <font face="DejaVu Sans Mono"> <br>
      Bastidor402 := 33.5124% * Total =&gt;      <br>
    </font><br>
    <font face="DejaVu Sans Mono">(1)</font><br>
    <font face="DejaVu Sans Mono"><br>
    </font> <br>
    <font face="DejaVu Sans Mono"> </font><font face="DejaVu Sans Mono">After
      doing:</font><br>
    <font face="DejaVu Sans Mono"> </font><br>
    <font face="DejaVu Sans Mono">C-x * a</font><br>
    <font face="DejaVu Sans Mono"> </font><br>
    <font face="DejaVu Sans Mono">C-x * u (on the formula (1))<br>
    </font> <br>
    <font face="DejaVu Sans Mono"> </font><br>
    <font face="DejaVu Sans Mono">I get:</font><br>
    <font face="DejaVu Sans Mono"> </font><br>
    <font face="DejaVu Sans Mono">Bastidor402 := 33.5124% Total =&gt;
      25509.974004 EUR<br>
    </font> <br>
    <font face="DejaVu Sans Mono"> </font><br>
    <font face="DejaVu Sans Mono">Which is correct, but the original
      formula (1) is changed:</font><br>
    <font face="DejaVu Sans Mono">Instead of <br>
    </font><br>
    <font face="DejaVu Sans Mono">Bastidor402 := 33.5124% * Total =&gt;</font><br>
    <font face="DejaVu Sans Mono">(1)<br>
    </font><br>
    <font face="DejaVu Sans Mono">Emacs changes it to:</font><br>
    <font face="DejaVu Sans Mono">Bastidor402 := 33.5124% Total =&gt;</font><br>
    <font face="DejaVu Sans Mono">(2)<br>
    </font><br>
    <font face="DejaVu Sans Mono"><br>
    </font><font face="DejaVu Sans Mono">I delete the result, and I do
      again C-x * u (on the formula (2))</font><font face="DejaVu Sans
      Mono">, and I get:</font><br>
    <font face="DejaVu Sans Mono"> </font><br>
    <p><font face="DejaVu Sans Mono">Bastidor402 := 33.5124 % Total
        =&gt; 33.5124 % 76121 EUR</font></p>
    <p><font face="DejaVu Sans Mono"><br>
      </font></p>
    <p><font face="DejaVu Sans Mono">Which is another change in the
        original formula (2). Now we have:</font></p>
    <p><font face="DejaVu Sans Mono"><font face="DejaVu Sans Mono"><br>
        </font></font></p>
    <p><font face="DejaVu Sans Mono"><font face="DejaVu Sans Mono">Bastidor402
          := 33.5124 % Total =&gt;</font></font></p>
    <p><font face="DejaVu Sans Mono">(3)</font></p>
    <p><font face="DejaVu Sans Mono"><br>
      </font></p>
    <p><font face="DejaVu Sans Mono">and a wrong result.<br>
      </font></p>
    <br>
    <lt-container></lt-container>
  </body>
</html>

--------------f3SuqcBM8T8JpBCb1CIfPmoB--




Acknowledgement sent to Ypo <ypuntot@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#68442; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

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