emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-agenda fails on particular construct


From: Ingo Lohmar
Subject: Re: [O] org-agenda fails on particular construct
Date: Thu, 15 Dec 2016 21:15:05 +0100

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

[Prev in Thread] Current Thread [Next in Thread]