[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] ob-scheme.el: Fix scheme blocks ignoring :results in for
From: |
Neil Jerram |
Subject: |
Re: [O] [PATCH] ob-scheme.el: Fix scheme blocks ignoring :results in formatting |
Date: |
Thu, 21 Jun 2018 18:56:29 +0100 |
Henry Blevins <address@hidden> writes:
> Currently, scheme babel blocks ignore :results header arguments like
> 'verbatim' and attempt to format all output as tables. This patch corrects
> that and performs the user supplied formatting.
>
> This is my first time contributing a patch, so I apologize if I have made
> any mistakes in submitting this.
Thanks for working on this Henry; as a fellow ob-scheme user, I
appreciate it.
> Currently, `org-babel-execute:scheme' ignores the user specified :result
> header
> argument found in the :result-param parameter and process all output as a
> table.
> The fix is to pass the `result' and :result-param to the
> `org-babel-result-cond'
> function to invoke the corresponding formatting.
>
> For example, the following block incorrectly formats its output as a table:
>
> (list 1 2 3)
>
> | 1 | 2 | 3 |
>
> This patch results in the correct behavior:
>
> (list 1 2 3)
>
> : (1 2 3)
>
> Bringing it inline with the result using Emacs lisp:
>
> (list 1 2 3)
>
> : (1 2 3)
But if I want the table output
| 1 | 2 | 3 |
will there still be a way to get it? (I'm sure I have org files that
need this!)
Regards,
Neil