From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlef Steuer Subject: Re: query about past scheduled events display in agenda Date: Thu, 16 Mar 2017 14:45:46 +0100 Message-ID: <20170316144546.0618b527@gaia> References: <87y3w5hgai.fsf@ucl.ac.uk> <87ziglfmuh.fsf@nicolasgoaziou.fr> 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]:45639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coVj7-0005E3-D7 for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 09:46:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coVj4-00044b-9O for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 09:46:01 -0400 Received: from [195.159.176.226] (port=47387 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1coVj3-00043W-Bo for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 09:45:58 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1coVit-0000og-8s for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 14:45:47 +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: emacs-orgmode@gnu.org Am Thu, 16 Mar 2017 13:05:42 +0100 schrieb Nicolas Goaziou : > Hello, >=20 > Eric S Fraga writes: >=20 > > 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) =20 >=20 > I cannot reproduce it on maint nor on master. Wasn't that fixed some > time ago? I have a +2 for "something" scheduled for yesterday. Org git from the morning. Org mode version 9.0.5 (release_9.0.5-370-g9f3a02 --snippet from *Org Agenda* WMA: Sched. 2x: TODO something -- --snippet from my org-file **** TODO something SCHEDULED: <2017-03-15 Mi> -- Just as a data point.=20 And a +1 to change this to 1x :-) Detlef >=20 > Regards, >=20 --=20 "Wisely and slow. Those stumble that run fast." Shakespeare -- Romeo and Juliet Dr. Detlef Steuer Helmut-Schmidt-Universit=C3=A4t Fakult=C3=A4t WiSo Holstenhofweg 85 22043 Hamburg Tel: 040/6541-2819 mail: steuer@hsu-hh.de