emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Concatenation of cells using 'remote'
Date: Fri, 29 Jan 2016 14:20:59 +0100	[thread overview]
Message-ID: <87vb6c1pz8.fsf@hornfels.zedat.fu-berlin.de> (raw)

Hi,

I can create a concatenation of the element in column like this:

#+NAME: addresses
| able    | able@example.org                                         |
| baker   | baker@example.org                                        |
| charlie | charlie@example.org                                      |
|         | able@example.org, baker@example.org, charlie@example.org |
#+TBLFM: $2='(concat $1 "@example.org")
#+TBLFM: @4$2='(mapconcat 'identity (list @1$2..@3$2) ", ")

I tried the following to create the concatenation in a
separate table:

| #ERROR |
#+TBLFM: $1='(mapconcat 'identity '(list remote(addresses,@1$2..@3$2) ", ")

but this doesn't work.  Presumably the expansion of the range happens at
the wrong time.

Does anyone know how to do this properly?

Cheers,

Loris

-- 
This signature is currently under construction.

             reply	other threads:[~2016-01-29 13:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-29 13:20 Loris Bennett [this message]
2016-02-15 17:42 ` Concatenation of cells using 'remote' Michael Brand
2016-02-16  7:32   ` Loris Bennett

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=87vb6c1pz8.fsf@hornfels.zedat.fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --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).