From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Worg Tutorial error: using Emacs lisp as formulas Date: Wed, 27 Aug 2014 07:52:20 -0400 Message-ID: <8761hegnez.fsf@alphaville.dokosmarshall.org> References: <53FCDD83.40206@gmail.com> <87a96qhcfb.fsf@alphaville.dokosmarshall.org> <53FD8701.4060707@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMbmT-0002lH-EN for emacs-orgmode@gnu.org; Wed, 27 Aug 2014 07:52:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMbmL-0001bT-U9 for emacs-orgmode@gnu.org; Wed, 27 Aug 2014 07:52:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:33751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMbmL-0001bE-Ns for emacs-orgmode@gnu.org; Wed, 27 Aug 2014 07:52:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XMbmE-0002Ww-90 for emacs-orgmode@gnu.org; Wed, 27 Aug 2014 13:52:34 +0200 Received: from pool-108-20-41-17.bstnma.fios.verizon.net ([108.20.41.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Aug 2014 13:52:34 +0200 Received: from ndokos by pool-108-20-41-17.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Aug 2014 13:52:34 +0200 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 Ciaran Mulloy writes: > Hi Nick, > Many thanks for your input. > > The table I was trying was the example in the tutorial shown as follows > (not big) and no hint of a regex!: > > | Col1 | Col2 | Col3 | Col4 | Col5 | > |------+------+------+------+------| > | a | a | :='(mapconcat 'identity (delete-dups (list @2$1..@>$1 > @2$2..@>$2)) " ") | b | | > | b | a | | | | > | c | d | | | | > > #+TBLFM: @2$3='(mapconcat 'identity (delete-dups (list @2$1..@>$1 > @2$2..@>$2)) " ") > > I'm not sure where you got this: the tutorial's table does not have a field formula afaict. If you eliminate the field formula, the example works - just do C-c C-c on the #+TBLFM: line: --8<---------------cut here---------------start------------->8--- | Col1 | Col2 | Col3 | Col4 | Col5 | |------+------+---------+------+------| | a | a | | b | | | b | a | | | | | c | d | | | | #+TBLFM: @2$3='(mapconcat 'identity (delete-dups (list @2$1..@>$1 @2$2..@>$2)) " ") --8<---------------cut here---------------end--------------->8--- I don't know why the field formula fails. > > The version of emacs is GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, ) of > 2013-07-27 on roseapple, modified by Debian > Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ > /usr/share/emacs/24.3/lisp/org/) > -- Nick