emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: org-agenda fails on particular construct
@ 2016-12-15 20:02 Ingo Lohmar
  2016-12-15 20:15 ` Ingo Lohmar
  2016-12-15 21:19 ` Nicolas Goaziou
  0 siblings, 2 replies; 5+ messages in thread
From: Ingo Lohmar @ 2016-12-15 20:02 UTC (permalink / raw)
  To: emacs-orgmode

[Sorry for not replying in-thread...]

Hi All,

after updating I'm getting the same result, but I could not reproduce it
even with my org-config until now.

The culprit seems to be in org-agenda.el, ll. 6098 ff., in org-agenda-get-deadlines:

		   ((eq org-agenda-skip-deadline-prewarning-if-scheduled
			'pre-scheduled)
		    ;; Set pre-warning to no earlier than SCHEDULED.
		    (min (- deadline scheduled) org-deadline-warning-days))

So it needs an item with deadline *and* scheduled time, and the
'pre-scheduled setting of the config var
org-agenda-skip-deadline-prewarning-if-scheduled.

Subtracting "scheduled" fails: every date in the procedure is an
integer, scheduled is still the raw string from the item.  At the
moment, I am too tired to figure out why that is, sorry.  Hope this is
still of some help.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* org-agenda fails on particular construct
@ 2016-12-14 20:25 Jeffrey DeLeo
  2016-12-15 13:16 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Jeffrey DeLeo @ 2016-12-14 20:25 UTC (permalink / raw)
  To: emacs-orgmode

With latest version of org:

Org mode version 9.0.2 (9.0.2-elpaplus @
/home/me/.emacs.d/elpa/org-plus-contrib-20161214/)

I get the following error when trying to create an agenda:

org-agenda-get-day-entries:
Wrong type argument: number-or-marker-p, "<2015-03-07 Sat>"

with a construct like this:

*** DONE Do Something
    CLOSED: [2015-03-05 Thu 15:14] SCHEDULED: <2015-03-05 Thu> DEADLINE: <2015-03-07 Sat>

When SCHEDULED and DEADLINE removed, no problem.

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

end of thread, other threads:[~2016-12-15 21:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-15 20:02 org-agenda fails on particular construct Ingo Lohmar
2016-12-15 20:15 ` Ingo Lohmar
2016-12-15 21:19 ` Nicolas Goaziou
  -- strict thread matches above, loose matches on Subject: below --
2016-12-14 20:25 Jeffrey DeLeo
2016-12-15 13:16 ` Nicolas Goaziou

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