emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dennis J Lin <djlin@uiuc.edu>
To: emacs-orgmode@gnu.org
Subject: Re: BUG?: repeat items disappears in agenda
Date: Fri, 18 Jan 2008 15:24:26 -0600	[thread overview]
Message-ID: <874pdaomid.fsf@uiuc.edu> (raw)
In-Reply-To: 4790CE1B.8040701@gmail.com

Salutations!

Please note that I'm sending this from gnus talking to gmane, and this
is the first time that I've tried posting anything to gmane (or using
gnus), so apologies if the electrons don't exactly align.

Wanrong Lin <wanrong.lin@gmail.com> writes:

> repeat TODO items has changed. Seems it did not. I am not sure whether
> this is considered a bug, but in short the symptom is this:
>
> Suppose I have a repeat task:
>
> * TODO [#A] A repeat task test
>  SCHEDULED: <2008-01-15 Tue +1w>
>
> And today is Friday, Jan 18. The task will show in my agenda for
> today. But, if I change the above task to:
>
> * TODO [#A] A repeat task test
>  SCHEDULED: <2008-01-14 Mon +1w>
>
> It will disappear from my agenda for today. But it still shows up in
> my agenda for Monday, Jan 14, and Monday, Jan 21. It seems to me that
> once today's date is closer to the next occurrence of a repeat item
> than the overdue one, the item will disappear.

I've noticed this, and I've actually been carrying a personal patch
for this -- (yes, there is a TODO entry to write it up an send it in,
which is why I'm writing this...)

Basically, in org-agenda-get-scheduled, we call
org-time-string-to-absolute passing in d1 (the day that we're trying
to get agenda items for.)  The problems is that if d1 is today, we
will get the closest day, which may be in the future, leading to the
problem.  The patch that I've found was to not pass in d1 if todayp is
true.

I have a 4 line patch implementing this (and I probably should write
another one to fix a similar problem with deadlines), but I've not
signed a FSF release, so I don't know if you want me to post my code
here.

Dennis Lin

  reply	other threads:[~2008-01-18 21:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-18 16:04 BUG?: repeat items disappears in agenda Wanrong Lin
2008-01-18 21:24 ` Dennis J Lin [this message]
2008-01-18 21:42   ` Carsten Dominik
2008-01-18 21:55     ` Dennis J Lin
2008-01-20 14:37       ` Carsten Dominik
2008-01-20 16:51         ` Bernt Hansen
2008-01-20 21:21           ` Wanrong Lin
2008-01-20 17:21         ` Dennis J Lin

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=874pdaomid.fsf@uiuc.edu \
    --to=djlin@uiuc.edu \
    --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).