From: Christian Schlauer <cs-muelleimer-rubbish.bin@arcor.de>
To: emacs-devel@gnu.org
Subject: Re: Calc: `*' binds more strongly than `/'
Date: Sun, 22 Apr 2007 12:23:51 +0200 [thread overview]
Message-ID: <f0fd1m$dur$2@sea.gmane.org> (raw)
In-Reply-To: 87ps5zi1h2.fsf@truman.edu
Jay Belanger <belanger@truman.edu> writes:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> ...
>> If there are too many existing calc-scripts that would be
>> broken by such a change, fine, but if this only mostly affects interactive
>> use, then changing it would make a lot of sense.
>
> While several people have said the current behavior is convenient for
> interactive use, I would hope (and expect) that there aren't any
> calc-scripts depending on this behavior. But it'd be nice to know for
> sure.
You are the maintainer of Calc -- do you have any contact to package
authors or users of packages that make use of Calc? I only know about
Org-mode, see below. What about table.el?
The tables in Org-mode use Calc. That is a non-interactive use of
Calc, isn't it:
| Value | Percentage |
|-------+------------|
| 17 | |
| 56 | |
| 42 | |
#+TBLFM: $2=$1/65*100
The `#+TBLFM:' line is a Calc-script, and some of them would break, if
they rely on the precedence of multiplication, like this example. But
nevertheless I think Calc's behaviour could (and should) be changed,
because:
- Existing tables aren't automatically recalculated when you open the
file, you have to do `C-u C-c C-c' in the table. So there is no
`immediate' damage. But even better:
- Org-mode could keep the existing Calc behaviour for existing tables
but use the `new' more standards-conforming Calc behaviour when the
script line `#+TBLFM:' starts with `#+TBLFMv2:' or something
similar, which could be Org-mode's new default as soon as Calc has
been modified.
So regarding Org-mode, nothing will break, I think.
> Perhaps after the release I could add a customizable variable,
> `calc-multiplication-has-precedence' (default t), and then anyone that
> wants to can set it to nil and try out the different behavior.
Rather make the default nil so that new users can use Calc and Org
like *any* pocket calculator or *any* spreadsheet...
WDYT?
Regards,
Christian
next prev parent reply other threads:[~2007-04-22 10:23 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-14 11:57 Calc: `*' binds more strongly than `/' Christian Schlauer
2007-04-14 15:09 ` Jay Belanger
2007-04-15 19:21 ` Chong Yidong
2007-04-15 20:05 ` Stefan Monnier
2007-04-17 12:47 ` Randal L. Schwartz
2007-04-17 18:03 ` Stefan Monnier
2007-04-18 8:44 ` Kim F. Storm
2007-04-18 19:27 ` Stefan Monnier
2007-04-18 20:02 ` Davis Herring
2007-04-18 20:16 ` David Kastrup
2007-04-18 21:43 ` Davis Herring
2007-04-19 16:10 ` Stefan Monnier
2007-04-20 11:13 ` Randal L. Schwartz
2007-04-20 13:40 ` Stefan Monnier
2007-04-20 14:07 ` Jay Belanger
2007-04-22 1:31 ` Miles Bader
2007-04-22 10:19 ` Christian Schlauer
2007-04-22 10:23 ` Christian Schlauer [this message]
2007-04-22 19:47 ` Jay Belanger
2007-04-23 10:46 ` Jason Rumney
2007-04-23 13:03 ` Kim F. Storm
2007-04-23 15:54 ` Jay Belanger
2007-04-25 19:56 ` Christian Schlauer
2007-04-25 20:54 ` Jay Belanger
2007-04-26 3:35 ` Stefan Monnier
2007-04-26 4:06 ` Jay Belanger
2007-04-26 14:11 ` Stefan Monnier
2007-04-26 21:07 ` Christian Schlauer
2007-04-26 15:07 ` Davis Herring
2007-04-26 16:01 ` Stefan Monnier
2007-04-26 18:32 ` Luc Teirlinck
2007-04-26 21:29 ` Christian Schlauer
2007-04-26 23:17 ` Luc Teirlinck
2007-04-26 21:07 ` Christian Schlauer
2007-04-27 1:27 ` Jay Belanger
2007-04-26 17:47 ` Davis Herring
2007-06-20 15:23 ` Jay Belanger
2007-06-20 16:02 ` Kim F. Storm
2007-06-20 17:13 ` Jay Belanger
2007-06-20 17:29 ` Luc Teirlinck
2007-06-20 17:54 ` Jay Belanger
2007-06-20 19:14 ` Kim F. Storm
2007-06-20 19:28 ` Luc Teirlinck
2007-06-20 20:18 ` Jay Belanger
2007-04-17 18:54 ` Jay Belanger
2007-04-18 21:55 ` Christian Schlauer
2007-04-19 2:58 ` Daniel Brockman
2007-04-22 10:27 ` Christian Schlauer
2007-04-26 16:00 ` Daniel Brockman
2007-04-19 15:16 ` Drew Adams
2007-04-19 17:05 ` David Kastrup
2007-04-19 17:18 ` Drew Adams
2007-04-19 17:33 ` David Kastrup
2007-04-16 15:38 ` Richard Stallman
2007-04-17 12:47 ` Randal L. Schwartz
2007-04-18 21:29 ` Christian Schlauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='f0fd1m$dur$2@sea.gmane.org' \
--to=cs-muelleimer-rubbish.bin@arcor.de \
--cc=cs-usenet@arcor.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.