[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Sched. Nx is wrong

From: Thomas Baumann
Subject: [Orgmode] Re: Sched. Nx is wrong
Date: Fri, 06 Jun 2008 19:58:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Cezar Halmagean <address@hidden> 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


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 
                                 (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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]