From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: g: Feature request: table formulas: resolve references on LHS [9.0.5 (9.0.5-elpa @ /home/daniel/.emacs.d/elpa/org-20170210/)] Date: Fri, 17 Feb 2017 11:14:12 +0100 Message-ID: <87o9y1azuz.fsf@nicolasgoaziou.fr> References: <8f26b1fb6dde9b543aa1090c6e3dd8bc@posteo.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cefYQ-0001eN-5o for emacs-orgmode@gnu.org; Fri, 17 Feb 2017 05:14:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cefYO-00033r-Vr for emacs-orgmode@gnu.org; Fri, 17 Feb 2017 05:14:18 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:56324) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cefYO-0002zy-QF for emacs-orgmode@gnu.org; Fri, 17 Feb 2017 05:14:16 -0500 In-Reply-To: <8f26b1fb6dde9b543aa1090c6e3dd8bc@posteo.de> (quazgar@posteo.de's message of "Fri, 17 Feb 2017 11:02:44 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Quazgar Cc: emacs-orgmode@gnu.org Hello, Quazgar writes: > As hinted on the manual http://orgmode.org/manual/Column-formulas.html > and written explicitly on a StackOverflow topic > http://emacs.stackexchange.com/questions/15185/cant-assign-to-hline-relative-reference, > the left hand side of table formulas currently cannot contain > references: > > The left-hand side of a column formula cannot be the name of column, > it must be the numeric column reference or $>. > > In examples like the following, this would be very convenient though: > > | Value 1 | Value 2 | Sum | > |---------+---------+-----| > | 1 | 1 | | > | 3 | 4 | | > |---------+---------+-----| > | Average | of sums | | > > #+TBLFM: @I$3..@II$3=$1+$2::$3=vmean(@I..@II) > > If I remember correctly, it used to work (I found a similar line in > org documents from June 2015). Is it possible to have this feature > (back), now officially? This feature was never introduced, at least in a correct implementation. At some point, there was something like it, but it was broken and was consequently removed. AFAIR, relative references using hlines (e.g., @I) is not well defined and is therefore difficult to implement. You may want to search the mailing list archives about it. Regards, -- Nicolas Goaziou