From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Re: Concatenation of cells using 'remote'
Date: Tue, 16 Feb 2016 08:32:45 +0100 [thread overview]
Message-ID: <87bn7hw1nm.fsf@hornfels.zedat.fu-berlin.de> (raw)
In-Reply-To: CALn3zogeC02Ga9X7L0DX0E69gob9DgOHNz2SRunzQ8u+XP6TiQ@mail.gmail.com
Michael Brand <michael.ch.brand@gmail.com> writes:
> 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
Thanks. Obviously I shouldn't be highlighting matching parens, but
rather ones which don't match ...
Cheers,
Loris
--
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.bennett@fu-berlin.de
prev parent reply other threads:[~2016-02-16 7:33 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
2016-02-16 7:32 ` Loris Bennett [this message]
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=87bn7hw1nm.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).