GNU bug report logs - #920
In CVS Emacs, calc-eval gives multiplication higher precidence than division

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Sun, 7 Sep 2008 19:55:05 UTC

Severity: normal

Merged with 914, 915, 918, 921, 923, 924, 928, 929, 930, 932, 933, 934, 937, 941, 944

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 920 in the body.
You can then email your comments to 920 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#920; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: jay.p.belanger <at> gmail.com
Cc: Francis Litterio <flitterio <at> gmail.com>, bug-gnu-emacs <at> gnu.org,
        emacs-devel <at> gnu.org
Subject: Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division
Date: Sun, 07 Sep 2008 15:46:52 -0400
> That's not a bug.  While many systems give division a higher precendence
> than multiplication, that isn't a universal rule.

Actually, I don't know of any system that gives higher precedence to
division.  The general rule that (AFAIK) all programming languages
follow (other than those that don't use infix-with-precedence, such as
Lisp and Smalltalk) is that * and / have the same precedence (and are
left associative).

I think Calc is plainly wrong is giving higher precedence to the
multiplication because it's completely non standard.  But since I don't
use Calc much and since it's been that way for a while, I won't fight
for it.


        Stefan





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#920; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>, 920 <at> debbugs.gnu.org
Cc: jay.p.belanger <at> gmail.com, bug-gnu-emacs <at> gnu.org,
        Francis Litterio <flitterio <at> gmail.com>, emacs-devel <at> gnu.org
Subject: Re: bug#920: In CVS Emacs,	calc-eval gives multiplication higher
 precidence than division
Date: Sun, 07 Sep 2008 22:19:04 +0200
Stefan Monnier wrote:
> I think Calc is plainly wrong is giving higher precedence to the
> multiplication because it's completely non standard.  But since I don't
> use Calc much and since it's been that way for a while, I won't fight
> for it.


I think there are good reasons fixing it:

- There are enough people out there that are not aware of the precedence
rules. Making calc follow them would help remove that confusion. (And I
would feel safer when crossing bridges.)
- Not following standards makes Emacs harder to use for new users.





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#920; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

bug closed, send any further explanations to Stefan Monnier <monnier <at> iro.umontreal.ca> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Sun, 07 Sep 2008 20:35:06 GMT) Full text and rfc822 format available.

Merged 918 920. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Sun, 07 Sep 2008 20:50:07 GMT) Full text and rfc822 format available.

Forcibly Merged 914 915 918 920 921 923 924. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Mon, 08 Sep 2008 02:25:06 GMT) Full text and rfc822 format available.

Forcibly Merged 914 915 918 920 921 923 924 928 929 930. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Mon, 08 Sep 2008 20:35:04 GMT) Full text and rfc822 format available.

Forcibly Merged 914 915 918 920 921 923 924 928 929 930 932 933. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Mon, 08 Sep 2008 21:00:06 GMT) Full text and rfc822 format available.

Forcibly Merged 914 915 918 920 921 923 924 928 929 930 932 933 934. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Mon, 08 Sep 2008 21:00:09 GMT) Full text and rfc822 format available.

Forcibly Merged 914 915 918 920 921 923 924 928 929 930 932 933 934 937. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Mon, 08 Sep 2008 22:30:03 GMT) Full text and rfc822 format available.

Forcibly Merged 914 915 918 920 921 923 924 928 929 930 932 933 934 937 941 944. Request was from "Juanma Barranquero" <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Tue, 09 Sep 2008 14:50:07 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 08 Oct 2008 14:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 257 days ago.

Previous Next


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