[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
org-table: deleting columns not always actualise the formulas.
From: |
Uwe Brauer |
Subject: |
org-table: deleting columns not always actualise the formulas. |
Date: |
Wed, 07 Jul 2021 09:07:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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
- org-table: deleting columns not always actualise the formulas.,
Uwe Brauer <=