emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: extract a region from a table and export it
Date: Fri, 17 Jun 2016 15:42:40 +0200	[thread overview]
Message-ID: <877fdo9bjj.fsf@gmx.us> (raw)
In-Reply-To: <87k2ho7ykv.fsf@mat.ucm.es> (Uwe Brauer's message of "Fri, 17 Jun 2016 13:08:00 +0000")


Uwe Brauer <oub@mat.ucm.es> writes:

>    > John Kitchin <jkitchin@andrew.cmu.edu> writes:
>    D> the problem seems to be that c0 and c2 are set to nil for some reason. I
>
>    > Or
>
>    > #+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2]
>    >   (cl-mapcar 'list c0 c2)
>    > #+END_SRC
>
> Thanks but I obtain
>
> #+RESULTS:
> | 110 | 110 |
> | 105 | 105 |
> | 108 | 108 |
>
> Which is wrong.

Incidentally,

        (mapcar 'string-to-char '("n" "i" "l")) => (110 105 108)

Probably your references are not right.  E.g. in Org-8.2 this file would
produce your observed result.

#+tblname: tab2

| 1 | a | 3 |
| 2 | b | 4 |
| 3 | c | 6 |
| 4 | d | 7 |


#+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2]
  (cl-mapcar 'list c0 c2)
#+END_SRC


-- 
A clever person solves a problem. A wise person avoids it

  parent reply	other threads:[~2016-06-17 13:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-14 10:44 extract a region from a table and export it Uwe Brauer
2016-06-14 11:14 ` Philip Hudson
2016-06-14 11:19 ` John Kitchin
2016-06-14 12:13   ` Uwe Brauer
2016-06-14 12:17   ` Uwe Brauer
2016-06-14 12:42     ` John Kitchin
2016-06-14 13:10       ` Uwe Brauer
2016-06-14 16:12     ` Rasmus
2016-06-16 16:12       ` Uwe Brauer
2016-06-16 17:18         ` John Kitchin
2016-06-17  8:59           ` Uwe Brauer
2016-06-16 16:16       ` Uwe Brauer
2016-06-16 17:23         ` John Kitchin
2016-06-17  9:01           ` Uwe Brauer
2016-06-17 11:03             ` John Kitchin
2016-06-17 11:34               ` Rasmus
2016-06-17 13:08                 ` Uwe Brauer
2016-06-17 13:42                   ` Rasmus
2016-06-17 13:42                   ` Rasmus [this message]
2016-06-17 17:26                     ` Uwe Brauer
2016-06-17 13:47                   ` John Kitchin
2016-06-17 17:25                     ` Uwe Brauer
2016-06-17 13:07               ` Uwe Brauer

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=877fdo9bjj.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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).