From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Bellani Subject: Re: Unit test table Date: Sat, 13 Feb 2016 17:03:02 -0200 Message-ID: References: <87r3gpqxm6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUfTF-0005OA-F0 for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 14:03:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUfTE-0006Ll-CA for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 14:03:05 -0500 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:35828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUfTE-0006Lc-4N for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 14:03:04 -0500 Received: by mail-wm0-x22d.google.com with SMTP id c200so62245883wme.0 for ; Sat, 13 Feb 2016 11:03:03 -0800 (PST) In-Reply-To: <87r3gpqxm6.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eduardo Bellani , emacs-orgmode@gnu.org Hey Aaron, thanks for the input. I don't think that solves my problem. I think I found a solution, but it involves multiple formulas for the same column. See here https://gist.github.com/ebellani/d271093faaa943674df6 Does anyone have a better idea for doing something like that? I had to modify both 'org-table-get-stored-formulas' and 'org-table-fedit-finish' so they stop complaining about multiple declarations for a single column. Thanks On Sat, Feb 6, 2016 at 8:31 PM, Aaron Ecay wrote: > Hi Eduardo, > > 2016ko otsailak 4an, Eduardo Bellani-ek idatzi zuen: >> >> Hey guys. I've posted this question in the irc-channel, but I had to >> leave before I could strike a conversation with the the nice volunteer >> who answered my question. I hope that email can preserve the >> conversation :) >> >> So, I have a table who's purpose is to demonstrate the working of different >> versions of the same code, perhaps in different languages. This is a >> working model: >> >> https://gist.github.com/ebellani/7c70d16f06076e4fc375 >> >> as you can see, there's repetition and the TBLFM is huge. >> >> Anyone has an idea of a better way to achieve similar results? > > Use babel: > > #+name: my-input > | el | value | expected | > |----+------------+----------| > | 5 | '(5 5 5 5) | 4 | > | ...etc... | > > #+begin_src elisp :var input=my-input :results table > ;; Code that does the calculations in your tblfm line > ;; `input' is a variable holding your input table > #+end_src > > -- > Aaron Ecay -- Eduardo Bellani