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

Reply via email to