From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Tables for attendance lists - A problem understanding TBLFM? Date: Tue, 9 Apr 2013 17:34:04 +0200 Message-ID: References: <20130408235753.GC109669@gwolf.org> <20130409002519.GA3195@kuru.dyndns-at-home.com> <20130409022123.GD112475@gwolf.org> <20130409145509.GC115357@gwolf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPakt-0006MI-AH for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 11:46:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPako-0005FL-9S for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 11:46:43 -0400 Received: from mail-lb0-f176.google.com ([209.85.217.176]:57283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPaYf-0000Wj-HH for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 11:34:05 -0400 Received: by mail-lb0-f176.google.com with SMTP id y8so7009623lbh.35 for ; Tue, 09 Apr 2013 08:34:04 -0700 (PDT) In-Reply-To: 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: Nick Dokos Cc: Gunnar Wolf , Org Mode On Tue, Apr 9, 2013 at 5:10 PM, Nick Dokos wrote: >> @r$c-> '(length (delq "" '("0"))) >> $1-> '(length (delq "" '("0"))) >> Result: 1 >> > > Check the formula again: you seem to have captured the 0 from the last > column, instead of stopping at the penultimate column. The range should > be $3..$>> or $<<<..$>> - also, you should have posted the whole > substitution history so we could see the range, instead of me guessing. The > motto should be "More information is better than less", but of course that > should be tempered by common sense :-) Gunnar is following the Debian package, '("0") was the result for a range with all fields empty before my first patch end of 2012. See the second and the last two hunks of http://orgmode.org/w/org-mode.git?p=org-mode.git;a=commitdiff;h=764315 which change the range list from '("0") to '(""). My previously attached patch will finally change this case to the required '(), see also its hunks at the beginning and the end. Trying to adapt your workaround with delq to '("0") lets me give up, also after reading the docstring of delq. Hope you or so can help. Michael