[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] I do not understand this error
From: |
Cecil Westerhof |
Subject: |
Re: [Orgmode] I do not understand this error |
Date: |
Thu, 12 Jul 2007 09:19:16 +0200 |
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 <address@hidden>