all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Cecil Westerhof <CecilWesterhof@xs4all.nl>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Making a list to string
Date: Wed, 11 Jul 2007 22:43:26 +0200	[thread overview]
Message-ID: <1184186606.6253.154.camel@Barebusta.DecebalComp> (raw)

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 <CecilWesterhof@xs4all.nl>

             reply	other threads:[~2007-07-11 20:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-11 20:43 Cecil Westerhof [this message]
2007-07-11 21:54 ` Making a list to string Eddward DeVilla
2007-07-11 21:59   ` Eddward DeVilla
2007-07-12  5:23     ` Cecil Westerhof
2007-07-12  6:04       ` Eddward DeVilla
2007-07-12  6:10         ` Cecil Westerhof
2007-07-13 13:47       ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1184186606.6253.154.camel@Barebusta.DecebalComp \
    --to=cecilwesterhof@xs4all.nl \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.