From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: query about past scheduled events display in agenda Date: Thu, 16 Mar 2017 13:05:42 +0100 Message-ID: <87ziglfmuh.fsf@nicolasgoaziou.fr> References: <87y3w5hgai.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coUA8-0004vE-CR for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 08:05:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coUA7-0006pQ-Gx for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 08:05:48 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:44275) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1coUA7-0006ng-BS for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 08:05:47 -0400 Received: from saiph.selenimh (00004301000000000000074b.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::74b]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id C9FB6A8102 for ; Thu, 16 Mar 2017 13:05:44 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.88) (envelope-from ) id 1coUA2-00034D-44 for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 13:05:42 +0100 In-Reply-To: <87y3w5hgai.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 16 Mar 2017 06:44:21 +0000") 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 Hello, Eric S Fraga writes: > Something has been bothering me (in an =C3=A6sthetic way) for some > time. When an event scheduled for the day before is displayed in the > default agenda view, it displays the days overdue as "2" which seems > wrong to me. I wonder if somebody can give me the justification for > this? > > The code in question, with my own change to fix this to display "1" day > overdue in such cases, is: > > @@ -6214,7 +6214,7 @@ scheduled items with an hour specification like [h]= h:mm." > (pcase-let ((`(,first ,past) org-agenda-scheduled-leaders)) > ;; Show a reminder of a past scheduled today. > (if (and todayp pastschedp) > - (format past (1+ diff)) > + (format past diff) > first)) > head level category tags time nil habitp)) > (face (cond ((and (not habitp) pastschedp) I cannot reproduce it on maint nor on master. Wasn't that fixed some time ago? Regards, --=20 Nicolas Goaziou