From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-agenda fails on particular construct Date: Thu, 15 Dec 2016 22:19:51 +0100 Message-ID: <87twa451qg.fsf@nicolasgoaziou.fr> References: <8760mlc65p.fsf@acer.localhost.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHdRQ-0005m4-65 for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 16:19:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHdRN-0006YR-39 for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 16:19:52 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54393) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cHdRM-0006X3-Ta for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 16:19:49 -0500 In-Reply-To: <8760mlc65p.fsf@acer.localhost.com> (Ingo Lohmar's message of "Thu, 15 Dec 2016 21:02:26 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Ingo Lohmar Cc: emacs-orgmode@gnu.org Hello, Ingo Lohmar 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