Improve future detection when reading dates
commit70d6341f2e4cec845d6ff2925f8b6c73dfddffa7
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 1 Jan 2010 10:31:57 +0000 (1 11:31 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 1 Jan 2010 10:31:57 +0000 (1 11:31 +0100)
treea30b7320ea5f4577756d3acbc7d33ee0599fbb25
parent7050ea8d4a46fba8befffd3b97cd779eff5ab811
Improve future detection when reading dates

PT writes:

> [Orgmode] org-read-date-prefer-future 'time doesn't always prefer future
>
> This is a very useful setting, because it allows the user to
> quickly schedule a task into the future by simply entering the
> time, but it doesn't always do the right thing.
>
> Suppose I scheduled a task to 1pm, but I didn't have time to deal
> with it during the day. It's 5pm now. If I want to reschedule the task to
> tomorrow 10am then I can write simply 10am to the time prompt and
> it puts the task correctly to tomorrow 10am. However, if I want
> to reschedule it to tomorrow 2pm then I can't write simply 2pm,
> because then it schedules the task at 2pm today (which is past
> already, since it's 5 pm).
>
> The problem is the feature uses the task's own scheduled time to
> determine if a time is in the past, instead of the current time.
>
>
> It's Org-mode version 6.33
lisp/ChangeLog
lisp/org.el