From: Eduardo Bellani <ebellani@gmail.com>
To: Eduardo Bellani <ebellani@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Unit test table
Date: Sat, 13 Feb 2016 17:03:02 -0200 [thread overview]
Message-ID: <CAFyKHs2mJiv03Qz3sAVZmQH5ENdSbsjQHUoO_RWsget=dgGQoQ@mail.gmail.com> (raw)
In-Reply-To: <87r3gpqxm6.fsf@gmail.com>
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 <aaronecay@gmail.com> 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
next prev parent reply other threads:[~2016-02-13 19:03 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
2016-02-13 19:03 ` Eduardo Bellani [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFyKHs2mJiv03Qz3sAVZmQH5ENdSbsjQHUoO_RWsget=dgGQoQ@mail.gmail.com' \
--to=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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.