Rudolf Adamkovič <[email protected]> writes:
> Ihor Radchenko <[email protected]> writes:
>
>> (defcustom org-babel-scheme-null-to 'hline
>> "Replace `null' and empty lists in scheme tables with this before
>> returning."
>
> This is no good either. There are no "scheme tables" and there is no
> `null' symbol in Scheme. I added a fix into my patch:
>
> "Replace `()' in proper lists with this string before returning results."
There is no null symbol with special meaning in Scheme indeed. It is
introduced purely to allow formatting Org tables in Scheme output:
**** Scheme: new variable: ~org-babel-scheme-null-to~
This new custom option allows to use a empty list or null symbol to
format the table output, initially assigned to ~hlines~.
So, I am not sure about your docstring change.
>> The docstring only talk about tables, which are always proper lists, so
>> what I did is probably an overkill.
>
> Overkill yes, but more importantly incorrect, as it messes up results
> the way it should not. I suggest we revert your patch and apply the one
> attached to this message.
> @@ -233,7 +233,7 @@ (defun org-babel-scheme--table-or-string (results)
> If the results look like a list or tuple, then convert them into an
> Emacs-lisp table, otherwise return the results as a string."
Note that the docstring still talks about "list or tuple".
I am wondering how tuple look like in Scheme.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>