From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Baumann Subject: Re: Sched. Nx is wrong Date: Fri, 06 Jun 2008 19:58:57 +0200 Message-ID: References: <87tzg6o49w.fsf@mixandgo.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4gDV-00050Q-JA for emacs-orgmode@gnu.org; Fri, 06 Jun 2008 13:59:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4gDT-00050B-VM for emacs-orgmode@gnu.org; Fri, 06 Jun 2008 13:59:09 -0400 Received: from [199.232.76.173] (port=34839 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4gDT-000508-Pb for emacs-orgmode@gnu.org; Fri, 06 Jun 2008 13:59:07 -0400 Received: from main.gmane.org ([80.91.229.2]:47835 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4gDT-0004VC-8B for emacs-orgmode@gnu.org; Fri, 06 Jun 2008 13:59:07 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K4gDQ-0000E4-Md for emacs-orgmode@gnu.org; Fri, 06 Jun 2008 17:59:04 +0000 Received: from p549637d6.dip0.t-ipconnect.de ([84.150.55.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jun 2008 17:59:04 +0000 Received: from dtbaumann by p549637d6.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jun 2008 17:59:04 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cezar Halmagean writes: > I have a TODO entry that's scheduled for: > > SCHEDULED: <2008-06-05 Thu> > > and today in the agenda buffer I see : > > project: Sched. 2x TODO my_task Nothing wrong with that, the entry was scheduled yesterday (1x) and today (2x) :-) But if you want to know, how many days you're late (which seems to be in line with the docs) the following patch will help "Text preceeding scheduled items in the agenda view. This is a list with two strings. The first applies when the item is scheduled on the current day. The second applies when it has been scheduled previously, it may contain a %d to capture how many days ago the item was scheduled." Thomas diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index d248c87..ff88bd0 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -3465,7 +3465,7 @@ FRACTION is what fraction of the head-warning time has passed." (if (= diff 0) (car org-agenda-scheduled-leaders) (format (nth 1 org-agenda-scheduled-leaders) - (- 1 diff))) + (- 0 diff))) head category tags timestr)))) (setq txt org-agenda-no-heading-message)) (when txt