From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: can't schedule/deadline items with no existing schedule/deadline? Date: Mon, 04 Mar 2013 18:54:05 +0100 Message-ID: <87mwujcanp.fsf@bzg.ath.cx> References: <87txord1xi.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCZbo-0006oa-Ny for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 12:55:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCZbm-0007wP-Hv for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 12:55:32 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:51179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCZbm-0007w8-8A for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 12:55:30 -0500 Received: by mail-wi0-f178.google.com with SMTP id hq4so2411200wib.11 for ; Mon, 04 Mar 2013 09:55:29 -0800 (PST) In-Reply-To: <87txord1xi.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 04 Mar 2013 16:06:17 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Hi Eric, Eric Abrahamsen 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