From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Lohmar Subject: Re: org-agenda fails on particular construct Date: Thu, 15 Dec 2016 21:15:05 +0100 Message-ID: <8737hpc5km.fsf@acer.localhost.com> 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]:59381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHcQp-0007Ai-1i for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 15:15:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHcQm-0002aO-Cm for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 15:15:11 -0500 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:37973) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHcQm-0002Y9-6M for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 15:15:08 -0500 Received: by mail-wm0-x229.google.com with SMTP id f82so2132754wmf.1 for ; Thu, 15 Dec 2016 12:15:08 -0800 (PST) Received: from localhost (xdsl-87-79-109-51.netcologne.de. [87.79.109.51]) by smtp.gmail.com with ESMTPSA id u78sm93525wma.11.2016.12.15.12.15.06 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Dec 2016 12:15:06 -0800 (PST) In-Reply-To: <8760mlc65p.fsf@acer.localhost.com> 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: emacs-orgmode@gnu.org 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).