emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thomas Baumann <dtbaumann@yahoo.de>
To: emacs-orgmode@gnu.org
Subject: Re: Sched. Nx is wrong
Date: Fri, 06 Jun 2008 19:58:57 +0200	[thread overview]
Message-ID: <m3hcc6o36m.fsf@norvel.baumann-gauting.site> (raw)
In-Reply-To: 87tzg6o49w.fsf@mixandgo.ro

Cezar Halmagean <cezar@mixandgo.ro> 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

  reply	other threads:[~2008-06-06 17:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-06 17:35 Sched. Nx is wrong Cezar Halmagean
2008-06-06 17:58 ` Thomas Baumann [this message]
2008-06-06 18:18   ` Cezar Halmagean
2008-06-08 11:01     ` Dominik, C.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3hcc6o36m.fsf@norvel.baumann-gauting.site \
    --to=dtbaumann@yahoo.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).