From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: Unit test table Date: Sat, 06 Feb 2016 22:31:45 +0000 Message-ID: <87r3gpqxm6.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSBOV-0006Vx-KV for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 17:31:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSBOQ-0008U9-Is for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 17:31:55 -0500 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:34086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSBOQ-0008Tu-CR for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 17:31:50 -0500 Received: by mail-wm0-x231.google.com with SMTP id 128so112502321wmz.1 for ; Sat, 06 Feb 2016 14:31:48 -0800 (PST) In-Reply-To: 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 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