emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Table results doesn't work for dotted lists
@ 2019-12-25  4:24 Lawrence Bottorff
  2019-12-27  9:13 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Lawrence Bottorff @ 2019-12-25  4:24 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

I've got this

#+begin_src emacs-lisp :results table
'(hline (hi) (there) hline)
#+end_src

#+RESULTS:
|-------|
| hi    |
| there |
|-------|

but then :results table has no effect on this

#+begin_src emacs-lisp :results table
'(hline (hi . bye) (here . there) hline)
#+end_src

#+RESULTS:
: (hline (hi . bye) (here . there) hline)

throwing in quotes to the lists changes it to this

#+begin_src emacs-lisp :results table
'(hline '(hi . bye) '(here . there) hline)
#+end_src

#+RESULTS:
|-------+----------------|
| quote | (hi . bye)     |
| quote | (here . there) |
|-------+----------------|

but that's kludge. Just wondering why it would distinguish between a trad
list and a dotted list.

LB

[-- Attachment #2: Type: text/html, Size: 1182 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Table results doesn't work for dotted lists
  2019-12-25  4:24 Table results doesn't work for dotted lists Lawrence Bottorff
@ 2019-12-27  9:13 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2019-12-27  9:13 UTC (permalink / raw)
  To: Lawrence Bottorff; +Cc: emacs-orgmode Mailinglist

Hello,

Lawrence Bottorff <borgauf@gmail.com> writes:

> #+begin_src emacs-lisp :results table
> '(hline (hi) (there) hline)
> #+end_src
>
>
> #+RESULTS:
> |-------|
> | hi    |
> | there |
> |-------|
>
> but then :results table has no effect on this
>
> #+begin_src emacs-lisp :results table
> '(hline (hi . bye) (here . there) hline)
> #+end_src
>
> #+RESULTS:
> : (hline (hi . bye) (here . there) hline)

[...]

> Just wondering why it would distinguish between a trad list and
> a dotted list.

It's probably because no one bothered implementing support for
tabulating dotted lists.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-27  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-25  4:24 Table results doesn't work for dotted lists Lawrence Bottorff
2019-12-27  9:13 ` Nicolas Goaziou

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).