From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: clocktable :formula not working for columns > $9 Date: Sun, 07 Jan 2018 10:58:59 +0100 Message-ID: <878tda6lcs.fsf@nicolasgoaziou.fr> References: <83942219-9266-24de-ce7f-0f3539b626ed@hoskins.eu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eY7jP-0000Vs-08 for emacs-orgmode@gnu.org; Sun, 07 Jan 2018 04:59:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eY7jL-0008Ok-SA for emacs-orgmode@gnu.org; Sun, 07 Jan 2018 04:59:07 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:59554) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eY7jL-0008Lu-Lo for emacs-orgmode@gnu.org; Sun, 07 Jan 2018 04:59:03 -0500 In-Reply-To: <83942219-9266-24de-ce7f-0f3539b626ed@hoskins.eu> (Brian J. Hoskins's message of "Sat, 6 Jan 2018 17:55:09 +0000") 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: Brian J Hoskins Cc: emacs-orgmode@gnu.org Hello, Brian J Hoskins writes: > When generating a clocktable and using the :formula parameter, attempts > to manipulate columns > $9 are unsuccessful. > > For example, consider the attached (anonymised) screen-grab of the > output from a clocktable in one of my org files. > > As a test, I have used the :formula parameter to create sequential > columns. It works up to and including column 9, but fails thereafter. > No error is generated. Here is the generated #+TBLFM line: > > #+TBLFM: @1$4 = (4)::@1$5 = (5)::@1$6 = (6)::@1$7 = (7)::@1$8 = > (8)::@1$9 = (9)::@1$10 = (10)::@1$11 = (11) > > This formula works fine on tables that I create myself. It only works if the initial table contains enough columns. Try: | 1 | #+TBLFM: @1$1=(1)::@1$2=(2)::@1$3=(3)::@1$4=(4)::@1$5=(5)::@1$6=(6)::@1$7=(7)::@1$8=(8)::@1$9=(9)::@1$10=(10)::@1$11=(11) > If this failure can be repeated by other org-mode users, perhaps we > should file a bug report. Confirmed and fixed. Thank you. By default, according to `org-table-formula-create-columns', Org ought to refuse to apply such a formula, which is now the case. Consider setting `org-table-formula-create-columns' to a non-nil value. Regards, -- Nicolas Goaziou