From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: query about past scheduled events display in agenda Date: Thu, 16 Mar 2017 06:44:21 +0000 Message-ID: <87y3w5hgai.fsf@ucl.ac.uk> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coRWR-0002zV-66 for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 05:16:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coRWM-0005o0-8i for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 05:16:39 -0400 Received: from mail-ve1eur01on0102.outbound.protection.outlook.com ([104.47.1.102]:6496 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1coRWL-0005id-Ro for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 05:16:34 -0400 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: =2D-8<---------------cut here---------------start------------->8--- @@ -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) =2D (format past (1+ diff)) + (format past diff) first)) head level category tags time nil habitp)) (face (cond ((and (not habitp) pastschedp) =2D-8<---------------cut here---------------end--------------->8--- thanks, eric =2D-=20 : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.5-370-g9f3a02= .dirty --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWMo0RQAKCRDIkZPY//z2 fdbTAJ9A58Ny5QhL6RYWdiKQ/4SJrzQwDwCeL0xlXnWggF86be2xMdD0lSX9RnE= =lslq -----END PGP SIGNATURE----- --=-=-=--