emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-table: deleting columns not always actualise the formulas.
@ 2021-07-07  7:07 Uwe Brauer
  2021-07-07 12:16 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Brauer @ 2021-07-07  7:07 UTC (permalink / raw)
  To: emacs-orgmode


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 




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-05  5:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-07  7:07 org-table: deleting columns not always actualise the formulas Uwe Brauer
2021-07-07 12:16 ` 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

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).