From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cecil Westerhof Subject: Making a list to string Date: Wed, 11 Jul 2007 22:43:26 +0200 Message-ID: <1184186606.6253.154.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 1I8j25-0008K2-M2 for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 16:43:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8j23-0008Jq-2O for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 16:43:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8j22-0008Jn-Vd for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 16:43:31 -0400 Received: from smtp-vbr17.xs4all.nl ([194.109.24.37]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8j22-0000bZ-EI for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 16:43:30 -0400 Received: from Barebusta.DecebalComp (DecebalComputing.xs4all.nl [213.84.157.201]) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6BKhRl2007170 for ; Wed, 11 Jul 2007 22:43:27 +0200 (CEST) (envelope-from CecilWesterhof@xs4all.nl) 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 the following table: |---+------------+---------------------------+------------+------------------------------------------| | | datum | from datum | hard coded | | |---+------------+---------------------------+------------+------------------------------------------| | # | 2007-01-01 | 192 | 1 | [50, 48, 48, 55, 45, 48, 49, 45, 48, 49] | | # | 2007-07-09 | 192 | 190 | [50, 48, 48, 55, 45, 48, 55, 45, 48, 57] | | # | 2007-07-11 | 192 | 192 | [50, 48, 48, 55, 45, 48, 55, 45, 49, 49] | | # | 2007-09-11 | 192 | 1 | [50, 48, 48, 55, 45, 48, 57, 45, 49, 49] | | # | 20071012 | 192 | 1 | [50, 48, 48, 55, 49, 48, 49, 50] | |---+------------+---------------------------+------------+------------------------------------------| #+TBLFM: $3='(time-to-day-in-year (org-read-date t t "$2"));N::$5="$2"::@2$4='(time-to-day-in-year (org-read-date t t "2007-01-01"));N::@3$4='(time-to-day-in-year (org-read-date t t "2007-07-09"));N::@4$4='(time-to-day-in-year (org-read-date t t "2007-07-11"));N::@5$4='(time-to-day-in-year (org-read-date t t "2007-01-01"));N:: The column 'from datum' does not get the right values. The last column shows why. "$2" gives a list of ASCII values of the string instead of the string. This makes that org-read-data gets 50 as a parameter instead of the string representing a date. How do I convert this list back to the string it is representing? -- Cecil Westerhof