* 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
* Re: org-agenda fails on particular construct
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
1 sibling, 0 replies; 5+ messages in thread
From: Ingo Lohmar @ 2016-12-15 20:15 UTC (permalink / raw)
To: emacs-orgmode
On Thu, Dec 15 2016 21:02 (+0100), Ingo Lohmar wrote:
> [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.
It seems replacing "scheduled" by (org-agenda--timestamp-to-absolute
scheduled) does the trick, but I have zero idea about the other args
that can be passed (down to org-time-string-to-absolute).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-agenda fails on particular construct
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
1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2016-12-15 21:19 UTC (permalink / raw)
To: Ingo Lohmar; +Cc: emacs-orgmode
Hello,
Ingo Lohmar <i.lohmar@gmail.com> writes:
> 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.
Good catch. Fixed. Thank you.
Regards,
--
Nicolas Goaziou
^ 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
* Re: org-agenda fails on particular construct
2016-12-14 20:25 Jeffrey DeLeo
@ 2016-12-15 13:16 ` Nicolas Goaziou
0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2016-12-15 13:16 UTC (permalink / raw)
To: Jeffrey DeLeo; +Cc: emacs-orgmode
Hello,
Jeffrey DeLeo <JeffreyDeLeo@gmail.com> writes:
> 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>
I cannot reproduce it. Could you provide an ECM and a more complete
backtrace?
Regards,
--
Nicolas Goaziou
^ 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).