Bugfix: Make sure property time comparison works correctly.
commitbc8a90da1db88ec7a57b5791fd3d9fc0e17ff9aa
authorCarsten Dominik <carsten.dominik@gmail.com>
Tue, 13 Jan 2009 09:33:50 +0000 (13 10:33 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Tue, 13 Jan 2009 09:33:50 +0000 (13 10:33 +0100)
treec4f3482bcd783da3bcad4d78766c2602f53a2a33
parent74a4244db189fd476d61e732aef00bf4f2fbbdf2
Bugfix: Make sure property time comparison works correctly.

Hsiu-Khuern Tang writes:

    I find that doing a tags search for SCHEDULED or DEADLINE turns
    up headings that do not have any schedule or deadlines.

    Using the example from
    http://article.gmane.org/gmane.emacs.orgmode/10274:

    #+SEQ_TODO: NEXT WAITING | DONE
    #+STARTUP: overview

    * DONE Test1
       CLOSED: [2009-01-07 Wed 12:26]

    * NEXT Test2
       DEADLINE: <2009-01-28 Wed>

    * Test3

    If I type

       C-c \ +DEADLINE<="<2009-01-28>" <RET>

    all three headlines are selected!  I expected to match the second
    headline only.

Indeed, this exposes an error in the time comparison functions
which would take a empty time stamp to mean 0.  This commit does
fix the bug.
lisp/ChangeLog
lisp/org.el