From unknown Fri Jun 20 07:24:11 2025 X-Loop: don@donarmstrong.com Subject: bug#941: In CVS Emacs, calc-eval gives multiplication higher precidence than division Reply-To: rms@gnu.org, 941@debbugs.gnu.org Resent-From: "Richard M. Stallman" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 09 Sep 2008 08:20:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 941 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12209480229977 (code B ref -1); Tue, 09 Sep 2008 08:20:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.9 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Sep 2008 08:13:42 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m898DcRg009971 for ; Tue, 9 Sep 2008 01:13:40 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcyLu-0006Lm-Hm for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 04:13:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcyLs-0006Kl-Kq for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 04:13:33 -0400 Received: from [199.232.76.173] (port=38515 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcyLq-0006KP-SQ; Tue, 09 Sep 2008 04:13:31 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:38755) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcyLq-0006xH-NP; Tue, 09 Sep 2008 04:13:30 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KcyK8-0003C5-CS; Tue, 09 Sep 2008 04:11:44 -0400 Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: merlyn@stonehenge.com (Randal L. Schwartz) CC: lennart.borgman@gmail.com, bug-gnu-emacs@gnu.org, emacs-devel@gnu.org, carsten.dominik@gmail.com In-reply-to: <86k5dmxtaz.fsf@blue.stonehenge.com> (merlyn@stonehenge.com) References: <878wu3j4k2.fsf@gmail.com> <86wshn3df0.fsf@blue.stonehenge.com> <7D0B0AA3-AED7-456B-AAAB-D72CABD19CFB@gmail.com> <48C58D7B.1060707@gmail.com> <86k5dmxtaz.fsf@blue.stonehenge.com> Message-Id: Date: Tue, 09 Sep 2008 04:11:44 -0400 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) There's no need to change the longstanding defaults, because it would break things. You already have a knob you can tweak if you think that "2 a / 3 b" should multiply by b, rather than divide by it. That's a personal choice. Frankly, I'd never touch that knob, because it looks to me like it should divide by b. I agree completely -- in that case, it is natural for b to go in the denominator. The same is true for 1 / 2 * 1000: the meaning of 1/2000 is more natural, mathematically. What Calc does now is clearly correct.