emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Ingo Lohmar <i.lohmar@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-agenda fails on particular construct
Date: Thu, 15 Dec 2016 22:19:51 +0100	[thread overview]
Message-ID: <87twa451qg.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <8760mlc65p.fsf@acer.localhost.com> (Ingo Lohmar's message of "Thu, 15 Dec 2016 21:02:26 +0100")

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

  parent reply	other threads:[~2016-12-15 21:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-12-14 20:25 Jeffrey DeLeo
2016-12-15 13:16 ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87twa451qg.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=i.lohmar@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).