From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Concatenation of cells using 'remote' Date: Tue, 16 Feb 2016 08:32:45 +0100 Message-ID: <87bn7hw1nm.fsf@hornfels.zedat.fu-berlin.de> References: <87vb6c1pz8.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVa87-0006hp-9c for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 02:33:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVa83-0005hn-8Y for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 02:33:03 -0500 Received: from plane.gmane.org ([80.91.229.3]:40980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVa83-0005hj-0n for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 02:32:59 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aVa7w-0006LG-TF for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 08:32:52 +0100 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Feb 2016 08:32:52 +0100 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Feb 2016 08:32:52 +0100 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: emacs-orgmode@gnu.org Michael Brand writes: > 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 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