From: Aaron Ecay <aaronecay@gmail.com>
To: Eduardo Bellani <ebellani@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Unit test table
Date: Sat, 06 Feb 2016 22:31:45 +0000 [thread overview]
Message-ID: <87r3gpqxm6.fsf@gmail.com> (raw)
In-Reply-To: <CAFyKHs3o8Cyn+z=OvAYergEkME=DMMXo3k+8OFdUMLQfSSmnZQ@mail.gmail.com>
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
next prev parent reply other threads:[~2016-02-06 22:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 10:48 Unit test table Eduardo Bellani
2016-02-06 22:31 ` Aaron Ecay [this message]
2016-02-13 19:03 ` Eduardo Bellani
2016-02-14 14:39 ` Aaron Ecay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r3gpqxm6.fsf@gmail.com \
--to=aaronecay@gmail.com \
--cc=ebellani@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).