From: Michael Brand <michael.ch.brand@gmail.com>
To: Loris Bennett <loris.bennett@fu-berlin.de>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Concatenation of cells using 'remote'
Date: Mon, 15 Feb 2016 18:42:45 +0100 [thread overview]
Message-ID: <CALn3zogeC02Ga9X7L0DX0E69gob9DgOHNz2SRunzQ8u+XP6TiQ@mail.gmail.com> (raw)
In-Reply-To: <87vb6c1pz8.fsf@hornfels.zedat.fu-berlin.de>
Hi Loris
On Fri, Jan 29, 2016 at 2:20 PM, Loris Bennett
<loris.bennett@fu-berlin.de> wrote:
> 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?
Just typos:
| able@example.org, baker@example.org, charlie@example.org |
#+TBLFM: $1='(mapconcat 'identity (list remote(addresses,@1$2..@3$2)) ", ")
Michael
next prev parent reply other threads:[~2016-02-15 17:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-29 13:20 Concatenation of cells using 'remote' Loris Bennett
2016-02-15 17:42 ` Michael Brand [this message]
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=CALn3zogeC02Ga9X7L0DX0E69gob9DgOHNz2SRunzQ8u+XP6TiQ@mail.gmail.com \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=loris.bennett@fu-berlin.de \
/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).