From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GPgpB0SY8WV7BwEAe85BDQ:P1 (envelope-from ) for ; Wed, 13 Mar 2024 13:12:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GPgpB0SY8WV7BwEAe85BDQ (envelope-from ) for ; Wed, 13 Mar 2024 13:12:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rRg61DN6; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710331972; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=glQuz3Kr2oRK2bwwQfnLFkW8P7vgOvla6KJVASfAgdo=; b=FEIqY+sSHq9msCG+6IIoRnkFVVLei7q/YeWXzJw4YK+6RDHa/Fuj8CRjBiI3rRuawPy+qL 7uNMxD0b8eKt7eYlKAjTlG0KcUrOL4tmx4JUhB506iWqvwn7p4ESyYc4Wl8fZWFKPlxajl M5mZp1mKeZN6MSj6mJUnpIzbH5ZKUvhAWW0utN3ktgB1qFn1RMFydsh5sG19Y93jpwd4Ui zxPF+yl98kXvqj9TUqg27eAy/D7y8WBd+FeujpArv+rhVzfXXNEicM7YknIA40IwRR3yXr 3EVwnpvG43NHCmi2eDEpxmPkmlk/7c/c4zhJPtg+WZDDotzLHa1pHBe+4Yx++g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rRg61DN6; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710331972; a=rsa-sha256; cv=none; b=cQ/r59JtUZMOJaTzkRKbaf8s2WadcZYGQ+fOqND5tQxUXOTTKgjYNJfBFDVaU94zy0LsEz hGPanqwX798EKbymcijAC9fPFVy/9Y29OGkSWIFtXDLifX/mw+0xb5k85vVvV9QrA9KJg4 X/wQIqtj0imbH/Q4nGyZ+Ec3lGGR552/gQ3CauKGdd30tzVIrt7XLIYiuFvG3KyYNkVxgU QZIu5ajX7vVukZCr4a8v8YnAe3QHzu8N+1KxvnvS8nF/BxwtCjeStQL2MGTMzq8//Kg9Cb 1iqiXw9LGveDi6qGh1MvEiW478jFIPjoqRDT9tfBHVgEjVXh5HMmbeqbXYFB8Q== 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 D7AF155ED3 for ; Wed, 13 Mar 2024 13:12:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rkNSr-0002wo-Q8; Wed, 13 Mar 2024 08:12:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkNSk-0002w7-9q for emacs-orgmode@gnu.org; Wed, 13 Mar 2024 08:12:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkNSh-0000hK-7H for emacs-orgmode@gnu.org; Wed, 13 Mar 2024 08:12:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1788D240103 for ; Wed, 13 Mar 2024 13:11:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710331917; bh=MDg8vJ3mi4Gh3AFQXBW6ZzqsUn+GzQHJ48FygkyvMHI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=rRg61DN6HIx2I1/a6GiQ09McdfB7A3XzwSCT/wUrJLgbCQ4EbT3g9iGd6r3+QgxGd 8yUEGbp3JisBHZDQ+nPHnMHRKL08rO8qPY+KMBYEClMkLIqCljJlfjD8vetWpZV+er zpqjxSysEDqW6RTWo5dH0mSBFlrJRDBWHSiF2CM6dAkq52AxLasT2Qd3SQIRQesisu tpjazUr6oqU1Te43AAW5YKZdpCTgjkeh52ZSVayQ+PD28fJsRhZvCysg4/HrD8X7kk nt7kUmJWVzF3IZ5F+29qhlzaoFS0XgF5PC0APz0w7lVZIWR1fvdUv++icl0qsuzn4J lch2HhmTUyi1Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TvqBN2F9tz6tn4; Wed, 13 Mar 2024 13:11:56 +0100 (CET) From: Ihor Radchenko To: Wu Ming Cc: emacs-orgmode@gnu.org Subject: Re: Table column formula with remote reference In-Reply-To: <86F6BD74-10F6-4796-B1A5-23B4FB425336@icloud.com> References: <1F92C461-F43D-48F4-B153-1AD7B308D377@icloud.com> <87zfv3bj8d.fsf@localhost> <86F6BD74-10F6-4796-B1A5-23B4FB425336@icloud.com> Date: Wed, 13 Mar 2024 12:16:08 +0000 Message-ID: <8734suxr7b.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.06 X-Spam-Score: -9.06 X-Migadu-Queue-Id: D7AF155ED3 X-Migadu-Scanner: mx13.migadu.com X-TUID: 4FRs/7tlEbVv Wu Ming writes: > My fault. Missed the line "One of the very first actions during evaluatio= n of Calc formulas and Lisp formulas is to substitute =E2=80=98@#=E2=80=99 = and =E2=80=98$#=E2=80=99 in the formula with the row or column number of th= e field where the current result will go to.=E2=80=9C So '@@#' becomes '@<= current row>'.=20 > > Overlooked it also because I did read the other line "=E2=80=98@0=E2=80= =99 and =E2=80=98$0=E2=80=99 refer to the current row and column, respectiv= ely, i.e., to the row/column for the field being computed.=E2=80=9D and did= try '@0$1'. Why is this different from the above? See "Remote references" subsection. It explains that in remote(NAME,REF), REF is inside the remote table. Relative and current column/row is ambiguous there. In contrast, @# and $# are special - they are replaced before remote(...) is processed. I agree that the manual is somewhat confusing. Possibly, we may even change `org-table-get-remote-range' to use relative references according to the original table. Improvements welcome! --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at