From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: BUG?: repeat items disappears in agenda Date: Fri, 18 Jan 2008 22:42:40 +0100 Message-ID: <7B164E1D-3884-4BBF-AB2B-E90068254CEF@science.uva.nl> References: <4790CE1B.8040701@gmail.com> <874pdaomid.fsf@uiuc.edu> Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFyzI-0000Ih-Oz for emacs-orgmode@gnu.org; Fri, 18 Jan 2008 16:42:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFyzG-0000HX-On for emacs-orgmode@gnu.org; Fri, 18 Jan 2008 16:42:56 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFyzG-0000HQ-Iz for emacs-orgmode@gnu.org; Fri, 18 Jan 2008 16:42:54 -0500 Received: from fg-out-1718.google.com ([72.14.220.153]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JFyzF-0002pF-Pb for emacs-orgmode@gnu.org; Fri, 18 Jan 2008 16:42:54 -0500 Received: by fg-out-1718.google.com with SMTP id d23so1281207fga.30 for ; Fri, 18 Jan 2008 13:42:52 -0800 (PST) In-Reply-To: <874pdaomid.fsf@uiuc.edu> 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: Dennis J Lin Cc: emacs-orgmode@gnu.org Please post your code, you can always do this, the copyright question only star when we decide to use it. And even then, 4 lines is very little. - Carsten On Jan 18, 2008, at 10:24 PM, Dennis J Lin wrote: > 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 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 > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode