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:02:26 +0100 Message-ID: <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]:53251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHcEb-0000o1-5p for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 15:02:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHcEY-0007Dd-Jy for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 15:02:33 -0500 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:35314) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHcEY-0007Bi-E9 for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 15:02:30 -0500 Received: by mail-wm0-x231.google.com with SMTP id a197so1582393wmd.0 for ; Thu, 15 Dec 2016 12:02:28 -0800 (PST) Received: from localhost (xdsl-87-79-109-51.netcologne.de. [87.79.109.51]) by smtp.gmail.com with ESMTPSA id ct7sm3527065wjc.2.2016.12.15.12.02.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Dec 2016 12:02:26 -0800 (PST) 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 [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.