emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* can't schedule/deadline items with no existing schedule/deadline?
@ 2013-03-04  8:06 Eric Abrahamsen
  2013-03-04 17:54 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Abrahamsen @ 2013-03-04  8:06 UTC (permalink / raw)
  To: emacs-orgmode

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".

I adventured into git looking to see if something had changed recently
regarding org-time-string-to-time, and it doesn't seem to have, which
makes me all the more suspicious that I'm doing something wrong. But it
still won't work with emacs -Q, so...

What am I doing wrong?

Thanks,
Eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: can't schedule/deadline items with no existing schedule/deadline?
  2013-03-04  8:06 can't schedule/deadline items with no existing schedule/deadline? Eric Abrahamsen
@ 2013-03-04 17:54 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2013-03-04 17:54 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode

Hi Eric,

Eric Abrahamsen <eric@ericabrahamsen.net> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-04 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-04  8:06 can't schedule/deadline items with no existing schedule/deadline? Eric Abrahamsen
2013-03-04 17:54 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).