From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QL75G9ZS5WAoagAAgWs5BA (envelope-from ) for ; Wed, 07 Jul 2021 09:08:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cLS+F9ZS5WCoCQAAB5/wlQ (envelope-from ) for ; Wed, 07 Jul 2021 07:08:06 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C4D981A886 for ; Wed, 7 Jul 2021 09:08:05 +0200 (CEST) Received: from localhost ([::1]:58982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m11fA-00075T-Rp for larch@yhetil.org; Wed, 07 Jul 2021 03:08:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m11ep-000754-Py for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 03:07:43 -0400 Received: from ciao.gmane.io ([116.202.254.214]:59026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m11en-0006bw-Kz for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 03:07:42 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m11em-000ATz-DA for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 09:07:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org From: Uwe Brauer Subject: org-table: deleting columns not always actualise the formulas. Date: Wed, 07 Jul 2021 09:07:35 +0200 Message-ID: <87eecazjns.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:P6Ye8/Iw+NmPe8XRdDe2am81/Dg= Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625641685; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=+O8WPKFwtEso2s3fNu8ZXaIxSS3BV11eVKJXiwDYH0M=; b=Io1GJzoHGKFKREF0y6kD3RZKqbroWcbdIU0krE5TWPir9lV/OGxOPYNonPRKaKjROCaRCb Vz30+HBQc/u8/tofAc+BSe5C/ywq9yL4kreu8+0AhRtXSMJJDEveTh5xBZSMnPHFsnGNp9 /7QonEjQM6ZzH8l1NW/cZ5lBUpFLXipSaZI5a1+QedkF84c3Zn37ZM31uyFkhV/Cgtwgxe fFml3zwxy543pw3In47LO4DDdzikrdPkTTbGNes1V8pQcx5HzN6N2tBxwPJsBeQT2gzYcf Ie8Q8BpprWjTOU41q4NiRAf4jhGANywGPr1ngh54tE55Vy67YW2KZAZeoxi/kw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625641685; a=rsa-sha256; cv=none; b=kU3GrSWskGYSqkXy86kQSbv77Hy0SvPD4njwyefATHLDSg3ltwy8KsbUq+04Ai0jEB0tL3 a9bQqkRL34kCoLh8gIzESnXuc3xp7QZwwprdKs+gCBipFfbP7lDKJ0oCuzCZFq7c4QAHkC 9fISFuJqC7a462uyorNNCuih5F5iwvcI9hWcgQzBOZptZA0SSrCtWPVo4mp4J3ehfzn7Mj lE0Mv9j56t3UmvAhmspdg0+j38/+ytC4SX7kDbIWjysped+WJg0X/X3+Vu2PMIFSDnjxSr GxdJ0sMHOHhrMvdQ02NfZYeoUXV2+43sbYrh4UM9V9HOcQsfIO6XWvfmWwHV/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.81 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C4D981A886 X-Spam-Score: -1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: i5EbV1c0x/WY 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