From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mETZIRm9KWH7lwAAgWs5BA (envelope-from ) for ; Sat, 28 Aug 2021 06:35:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UGRHHRm9KWGzWAAA1q6Kng (envelope-from ) for ; Sat, 28 Aug 2021 04:35:37 +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 C6490126C1 for ; Sat, 28 Aug 2021 06:35:36 +0200 (CEST) Received: from localhost ([::1]:57402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJq42-0007O6-4K for larch@yhetil.org; Sat, 28 Aug 2021 00:35:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJq2U-0007Nu-55 for emacs-orgmode@gnu.org; Sat, 28 Aug 2021 00:33:54 -0400 Received: from ciao.gmane.io ([116.202.254.214]:52370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJq2S-00068O-FX for emacs-orgmode@gnu.org; Sat, 28 Aug 2021 00:33:53 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mJq2N-0005Qk-5Q for emacs-orgmode@gnu.org; Sat, 28 Aug 2021 06:33:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Jarmo Hurri Subject: Re: Org table: emphasizing calculated cell Date: Sat, 28 Aug 2021 07:33:38 +0300 Message-ID: <87bl5itcgt.fsf@iki.fi> References: <87r1egeozd.fsf@iki.fi> <20210826075152.17173b56@carnot2> <8735qvcyyy.fsf@iki.fi> <87bl5ihcqg.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:Mw5RUYky2giw10uH0x6/hwJcyTk= 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=1630125337; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=RTwgEDXOD35ZXeT0jHE6w48I4WIeuv8X5HMEUBoofGM=; b=aP7NKr+Pqz+QLGxXWmysssZaw/iCFgS2fsMMyTxRO64KpGseoCHVPKxypNdOaTXQ7kCDft EsKLtHGtAjyN3PEQVjilM1J6eNYfLTMT4R8nMmDgHH/Ynm22qdOsby0ZDE0Mdtg9l2Yj3P aRpNXJjIYj17eHxgNBM5V0/cXuwK3NC3etirEWh4f2Gb57g+io8HTLL2DyVlSBi5fHHO2T +gTsbtSwqE2Afl+gaJHfoiJa4vxbuYSY5g1VtQuG6wD0M+CY74TpqA5ug9WcXf7FZ/0reb 8Ox+MbJ4XBxctC0XdgFeeYZJKqnlwQO/4tY+RY9oMjf96P6EX/S9rzO9GYuWiw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630125337; a=rsa-sha256; cv=none; b=WbJOl50RYD1qsL0Kxiv/MIKOij8maQiaGPG1OSqI3hhKkxlHpG7+mSjUgPMxDSIUKz1ad6 AB7Ar+v1AuN4CmnmUEvNSEDRQA9onklW9emTlaSsdoqrssdNTuI3aHuAMXIR/akLN8Az5I uyezOvyJVu9NRsFVx9H/Z+Diw3a4rE3GvlpKwL5/KYlp9pRHZ1EL7Mz3Ud4TmlvbURT64D zAA2LTibFwM7yHzQqAJK+Nv3FBN/1nyC0MmQk6O7vOshPoFhvZgcwXgWmK+RvwVtn1HbhL i/sp0xzYgCDzIvRt/26eIrMlSMaguvD+asciazsk1Ze52XSx9+oV1wbc65YFAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -0.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: C6490126C1 X-Spam-Score: -0.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: NMjb+dYzTAsi Nick Dokos writes: > Jarmo Hurri writes: >> This solution seems to change the contents of a cell, not only its >> formatting. So the following, where I try to increase the value of "C" >> by one, leads to an error: >> >> ``` >> | quantity | value | >> |----------+--------| >> | A | 1 | >> | B | 3 | >> |----------+--------| >> | *C* | *0.33* | >> | D | #ERROR | >> >> #+TBLFM: @4$2=@-2/@-1; *%.2f*::@5$2=@-1+1 >> ``` >> >> I wonder if there is a way around this effect? > > The error here is that `*0.33*' is no longer a string that can be > converted to a number, so the calculator barfs. Yes, that is obvious. The underlying question is whether it is possible to cleanly separate presentation from contents. Here they are mixed. All the best, Jarmo