emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: William Henney <whenney@gmail.com>
Cc: emacs-org <emacs-orgmode@gnu.org>
Subject: Re: Table formula bug?
Date: Mon, 8 Mar 2010 09:06:31 +0100	[thread overview]
Message-ID: <98AA17D6-22BC-4CC5-8C47-5CAEB873632F@gmail.com> (raw)
In-Reply-To: <41c818191003070931x2e18e8edp93a6d082c9ff6849@mail.gmail.com>

Hi William,

On Mar 7, 2010, at 6:31 PM, William Henney wrote:

> Hi Carsten,
>
> On Sun, Mar 7, 2010 at 9:22 AM, Carsten Dominik
> <carsten.dominik@gmail.com> wrote:
>> Org does read arctan2 as a field reference like B4 or AB2 and  
>> determinates
>> that this is a row REALLY far to the right.
>>
>> I have fixed this special case.  Are there more functions in calc  
>> which have
>> names like this?
>
> I confirm that your fix works. Thanks for doing this so fast!
>
> A quick search for digits in the "(calc) Function Index" info node
> gives the following list:
>
> arctan2, exp10, expm1, lnp1, log10, stir1, stir2

Thanks!  I am catching aything now that has more than two letters,  
which is probably OK (it assumes that org tables will never have more  
than 676 rows....).

>
> Here is a list of all the calc operators that I could find, some of
> which might confuse your regexps:
>
> !, !!, !!!, !=, %, &&, &&&, *, +, +/-, -, /, :, ::, :=, <, <=, =, ==,
> =>, >, >=, ?, \, ^, _, |, ||, |||
>
> I don't think it is necessary to allow all of these in table formulae
> since many have synonyms. E.g., `x &&& y' can be written `pand(x, y)'

I think these are all OK.  Only problem *might* be && and &&&, but
I think we should be fine here as well.

Thanks for your very complete answer!

- Carsten

      reply	other threads:[~2010-03-08  8:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-07 13:34 Table formula bug? William Henney
2010-03-07 15:22 ` Carsten Dominik
2010-03-07 17:31   ` William Henney
2010-03-08  8:06     ` Carsten Dominik [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=98AA17D6-22BC-4CC5-8C47-5CAEB873632F@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=whenney@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).