From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cecil Westerhof Subject: Re: I do not understand this error Date: Thu, 12 Jul 2007 09:19:16 +0200 Message-ID: <1184224756.6283.204.camel@Barebusta.DecebalComp> References: <1184220422.6252.181.camel@Barebusta.DecebalComp> <1184222066.6283.191.camel@Barebusta.DecebalComp> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8sxM-0003Dh-EJ for emacs-orgmode@gnu.org; Thu, 12 Jul 2007 03:19:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8sxK-0003D1-Iu for emacs-orgmode@gnu.org; Thu, 12 Jul 2007 03:19:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8sxK-0003Ct-Cz for emacs-orgmode@gnu.org; Thu, 12 Jul 2007 03:19:18 -0400 Received: from smtp-vbr11.xs4all.nl ([194.109.24.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8sxJ-0000yO-Go for emacs-orgmode@gnu.org; Thu, 12 Jul 2007 03:19:17 -0400 Received: from Barebusta.DecebalComp (DecebalComputing.xs4all.nl [213.84.157.201]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6C7JGSE032943 for ; Thu, 12 Jul 2007 09:19:17 +0200 (CEST) (envelope-from CecilWesterhof@xs4all.nl) In-Reply-To: <1184222066.6283.191.camel@Barebusta.DecebalComp> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode I have been experimenting a little bit more. I now have the following table: |---+------------+---------------+---------------+-----------------------+----------+-------| | | date | previous date | prev at once | prev with dummy field | row date | dagen | |---+------------+---------------+---------------+-----------------------+----------+-------| | # | | | filled | empty | EMPTY | | | # | 2007-07-09 | | filled | empty | FILLED | -3 | | # | 2007-09-11 | 2007-07-09 | filled | filled | FILLED | 64 | | # | | 2007-09-11 | filled | filled | EMPTY | | | # | 2006-12-31 | | filled | empty | FILLED | -193 | |---+------------+---------------+---------------+-----------------------+----------+-------| #+TBLFM: $3='(concat @-1$2);S::$4='(if (not (equal (concat @-1$2) "")) "filled" "empty")::$5='(if (not (equal (concat $3 ) "")) "filled" "empty")::$6='(if (not (equal (concat $2 ) "")) "filled" "empty")::$7='(if (and (not (check-if-after-hline)) (not (equal @-1$2 "")) (not (equal $2 ""))) (- (time-to-days (org-read-date t t (concat $2))) (time-to-days (org-read-date t t (concat @-1$2)))) "");S When checking for the previous date at once you always get filled. If the previous date is copied to a field and this field is checked, you get the expected value. What is happening here? Also why is in the column 'row date' everything in caps? -- Cecil Westerhof