From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: org-table: deleting columns not always actualise the formulas.
Date: Wed, 07 Jul 2021 09:07:35 +0200 [thread overview]
Message-ID: <87eecazjns.fsf@mat.ucm.es> (raw)
Hi
Please consider the following example
#+begin_src elisp
| / | <> | <> | <> | <> | <> | <> | <> | | | | | | | | | |
| | | DMI G | DMNI H | ExNDM I | ExNDNM J | my-result | his-result | Check | aux1 | aux2 | aux3 | aux4 | aux5 | aux6 | Res-aux | Weight2 |
| | Weight: | 1 | 0.2 | 1 | 0.1 | | 0.1 | | | | | | | | | 0.1 |
|---+---------+-------+--------+---------+----------+-----------+------------+-------+------+------+------+------+------+------+---------+---------|
| | user1 | 0 | 0 | 11 | 0 | 10.1 | 10.1 | OK | 0 | 0 | 0.0 | 0.1 | 10 | 0.0 | 10.1 | |
|---+---------+-------+--------+---------+----------+-----------+------------+-------+------+------+------+------+------+------+---------+---------|
,#+TBLFM: $7=if($3>10,($3-10)*@3$17,0)+ min(10,$3)*@3$3+ min(10,$4)*@3$4 + if($5>10,($5-10)*@3$17,0)+min(10,$5)*@3$5 +@3$6*$6;f1::$9=if("$7" == "$8", OK, NO)::$10=if($3>10,($3-10)*@3$17,0);f1::$11=min(10,$3)*@3$3;f1::$12=min(10,$4)*@3$4;f1::$13=if($5>10,($5-10)*@3$17,$5);f1::$14=min(10,$5)*@3$3;f1::$15=@3$6*$6;f1::$16=vsum($10..$14);f1
#+end_src
Now I delete the last columns
#+begin_src elisp
| / | <> | <> | <> | <> | <> | <> | |
| | | DMI G | DMNI H | ExNDM I | ExNDNM J | my-result | Weight2 |
| | Weight: | 1 | 0.2 | 1 | 0.1 | | 0.1 |
|---+---------+-------+--------+---------+----------+-----------+---------|
| | user1 | 0 | 0 | 11 | 0 | 10.1 | |
|---+---------+-------+--------+---------+----------+-----------+---------|
,#+TBLFM: $7=if($3>10,($3-10)*@3$16,0)+ min(10,$3)*@3$3+ min(10,$4)*@3$4 + if($5>10,($5-10)*@3$16,0)+min(10,$5)*@3$5 +@3$6*$6;f1::
#+end_src
But as you can see @3$17 only gets changed to @3$16 but not to @3$8 as
it should be.
Is this a *BUG*? I am running emacs and org git master from a couple of
weeks ago.
Regards
Uwe Brauer
next reply other threads:[~2021-07-07 7:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-07 7:07 Uwe Brauer [this message]
2021-07-07 12:16 ` org-table: deleting columns not always actualise the formulas Eric S Fraga
2021-07-07 16:22 ` Uwe Brauer
[not found] ` <878s2iowwz.fsf@ucl.ac.uk>
2021-07-07 18:43 ` Uwe Brauer
2022-10-05 5:18 ` Ihor Radchenko
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=87eecazjns.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@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 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).