From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8I6fGEElwmRFTAAASxT56A (envelope-from ) for ; Thu, 27 Jul 2023 10:05:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gBOGGEElwmTNAAAAauVa8A (envelope-from ) for ; Thu, 27 Jul 2023 10:05:21 +0200 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 B339A64111 for ; Thu, 27 Jul 2023 10:05:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NyVW6gTl; 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=1690445121; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vMLTtMSCfCk0+pzuMQzPduwJP/9ZqKl6euxZMaGdqBE=; b=akrgDYWMDWqbfB/2RfVwZ1tJfug6bs7bQE0x4Wbz5BzRVsz4uP3jm7GkCWICRyLHUtAjQy 9qDTOroY/iPKoRpYBnyJWUbcnf4L3cat/XkmRny+2ADJAHU3Xcz6O9YS7zGvoVX/LbtWR6 SMu8Oxk3ncX7wjKtQAK+xZk17S8Q5TiPpNKLiZHOIa/tzN7zO0SCvmkvbOH6vbDMeR0Ip4 CAYRahvlBbPilDKQVRbd0/Ddc+B6btjSt9umV88P2aoNGf1mX5XxogXrHqdR7ODCeiCec0 Ky41IEUi3qVkc0JvcU9Ab+5hf5OIBi86jdKKBTgaXFmcMISI1ADnMDvlsS2VIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NyVW6gTl; 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=1690445121; a=rsa-sha256; cv=none; b=LgEW4oQGqkisA6YnIh+xw3h2qLXhH14XVfEHMoTOhHqA8MUQjr6l8jy7pvxTRYHqK55o57 anTGT/N3nsvEHwPnWta45HdD5+Vox0Vq8BrrsSfnDj8gu5gEixAFWbAA5VFAksmwXh/RsG IYSdQgbDewUrOQn3bFc8QuU8CieLCMN0gThHdgs3ekhV1vGGyWGEjJCwZxmy0dfSnu0kTN Yfe3YqPdxXN5VlgxLnFYGx2j4doFsAyTd8l7WhO9MTKP5V+AEPfv8i+7/Um+iQQt/CYMX6 41RmD9pDR07U/U5qA6uJp21z6jQ9REKUuKDJZekIeWXt66uhAShP7xrXbAsZow== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOvXv-00065b-CE; Thu, 27 Jul 2023 03:36:27 -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 1qOvXs-00065M-AG for emacs-orgmode@gnu.org; Thu, 27 Jul 2023 03:36:24 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOvXq-0004jB-Dj for emacs-orgmode@gnu.org; Thu, 27 Jul 2023 03:36:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7779E240028 for ; Thu, 27 Jul 2023 09:36:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690443380; bh=5T7/9LxlCiZ0AHgnvsr2CR2q2hDyEmiKCmYrFOIvBNw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=NyVW6gTl7ZekdT84i4bZjRbKsFj7BljIvNZQE0GFVw3p0kS7alnZX5cMVj7qxG4a+ x6zUFHjQR4mh+1VAnhDZbpGIXRKgq/HurbxfPMz1KKQJ7v9a0qXHMGsojU2IasoAj2 iHrP+wDr9JM1UOOFYy/5691Fyt2wf8S6Fff5tzq+j7+qmJAaOW5uVc8wFziJKbDm9M 72vs3kaD2LSWGOOKmNEyvIWk7FQNF92Aywmp9pLfOe9x5ahUNeiLe5Lj1U1GEg1LbV 5DCR9LkohEFSbRj+4HgtTAU044gseX4e7TiWMjoanGLr+1KaOND8YkNoHHZXMWvLEa /AzMwoMEB6FlA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RBMyW5vNbz6twB; Thu, 27 Jul 2023 09:36:19 +0200 (CEST) From: Ihor Radchenko To: Gavin Downard Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: [PATCH] lisp/org-table.el: Allow named columns on lhs In-Reply-To: <87pm4exobn.fsf@runbox.com> References: <877cqwbpa2.fsf@runbox.com> <4fee1ca5-4d38-0bb9-1931-ee554307ac4d@gmail.com> <87wmyoks82.fsf@runbox.com> <8b17c390-4aa7-f988-aa9c-54479b8b4461@gmail.com> <87pm4exobn.fsf@runbox.com> Date: Thu, 27 Jul 2023 07:36:33 +0000 Message-ID: <877cql956m.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H5=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-Spam-Score: -7.44 X-Migadu-Queue-Id: B339A64111 X-Migadu-Spam-Score: -7.44 X-Migadu-Scanner: mx0.migadu.com X-TUID: WVoVeiR9LoLG Gavin Downard writes: > (*): the issue with `org-table-formula-substitute-names' as it is, is > that it will replace field names with the field /value/, not the field > index. Hopefully modifying the function to replace field names with > their indices won't break anything, so we can use the same function for > both sides of the formula. This sounds reasonable, but please proceed with care. If you can, please factor out the common parts into a separate helper function that we can carefully test (first, without adding new features). What I have in mind is a preparatory "refactoring" patch that we will later supply with new tests. > Or, if you want to get really crazy, we can let fields and columns with > the same name share a formula. :) > ... > But in all seriousness, that does seem like it could be useful. I guess > on the rhs we could give each of those "shared names" the value of an array of > that name's connected columns (or fields). But I think support for that should > probably be added in a separate patch, since it's a bit separate from > the main issue. Yes, please move the discussion of "shared names" to a separate thread. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at