[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] can't schedule/deadline items with no existing schedule/deadline
From: |
Bastien |
Subject: |
Re: [O] can't schedule/deadline items with no existing schedule/deadline? |
Date: |
Mon, 04 Mar 2013 18:54:05 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Hi Eric,
Eric Abrahamsen <address@hidden> writes:
> The fact that no one else has reported this makes me think it's user
> error, but I can reproduce with emacs -Q, so here goes:
>
> Scheduling or deadlining an item with no existing SCHEDULE/DEADLINE
> errors out, because both call code like this:
>
> (let* ((old-date (org-entry-get nil "SCHEDULED"))
> (old-date-time (org-time-string-to-time old-date))
>
> If there's no old-date, then "nil" gets fed to
> `org-time-string-to-time', which doesn't accept "nil".
How can I be so distracted? Fixed, *thanks* a lot!
--
Bastien