From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Concatenation of cells using 'remote' Date: Mon, 15 Feb 2016 18:42:45 +0100 Message-ID: References: <87vb6c1pz8.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVNAd-0001xu-Ik for emacs-orgmode@gnu.org; Mon, 15 Feb 2016 12:42:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVNAc-0003Y8-M7 for emacs-orgmode@gnu.org; Mon, 15 Feb 2016 12:42:47 -0500 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVNAc-0003Y0-EX for emacs-orgmode@gnu.org; Mon, 15 Feb 2016 12:42:46 -0500 Received: by mail-wm0-x234.google.com with SMTP id g62so118864453wme.0 for ; Mon, 15 Feb 2016 09:42:46 -0800 (PST) In-Reply-To: <87vb6c1pz8.fsf@hornfels.zedat.fu-berlin.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Loris Bennett Cc: Org Mode Hi Loris On Fri, Jan 29, 2016 at 2:20 PM, Loris Bennett 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