Fix recent bug with timestamp properties
commitfeb269826a559ccdb507375d42078bd033deed5f
authorCarsten Dominik <carsten.dominik@gmail.com>
Sun, 20 Dec 2009 10:09:05 +0000 (20 11:09 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sun, 20 Dec 2009 10:09:05 +0000 (20 11:09 +0100)
treeb3ac85dc3c0aab30e14ef41f5469a77e30e5fe1c
parent315c9fd1a1e961f8e53b2583b9ecc6bb345b639d
Fix recent bug with timestamp properties

Matt Lundin writes

> I believe that commit b8e0d6fdb41f2165d675e89fcb54b741c971f6f4 broke
> accessing timestamps with the org-entry-get.
>
> With that commit, several functions I use to check whether an entry has
> a timestamp stopped working.
>
> In other words,
>
> (org-entry-get nil "TIMESTAMP_IA")
>
> or
>
> (org-entry-get nil "TIMESTAMP")
>
> always return nil, even if a timestamp exists.
>
> Strangely, the org-entry-properties alist includes values for TIMESTAMP
> and TIMESTAMP_IA.
>
> I tested this by evaluating the expressions in the sample entry below:
>
> --8<---------------cut here---------------start------------->8---
> * TODO Test    :computer:
>  <2009-12-19 Sat>
>  [2009-12-19 Sat 17:47]
>
> (org-entry-get nil "TIMESTAMP_IA")
> (org-entry-get nil "TIMESTAMP")
> (org-entry-properties)
> --8<---------------cut here---------------end--------------->8---
lisp/ChangeLog
lisp/org.el