From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: BUG: agenda for current days excludes reoccurring events Date: Sat, 28 Jan 2017 15:15:08 +0100 Message-ID: <87o9yrs237.fsf@nicolasgoaziou.fr> References: <87k29fbol7.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXTma-00038T-G3 for emacs-orgmode@gnu.org; Sat, 28 Jan 2017 09:15:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXTmZ-0000t1-F3 for emacs-orgmode@gnu.org; Sat, 28 Jan 2017 09:15:12 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:52306) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cXTmZ-0000rt-99 for emacs-orgmode@gnu.org; Sat, 28 Jan 2017 09:15:11 -0500 In-Reply-To: <87k29fbol7.fsf@iki.fi> (Jarmo Hurri's message of "Sat, 28 Jan 2017 10:01:08 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Jarmo Hurri Cc: emacs-orgmode@gnu.org Hello, Jarmo Hurri writes: > - bug: day agenda for current day does not show reoccurring events > > - how to replicate with the ECM provided > 1. untar the file provided below > 2. cd into created dir > 3. edit the first line of file agenda-setup.el so that the latest org > release lisp is in the load path > 4. run > emacs -q --load agenda-setup.el > 5. run command (org-agenda) > 6. press 'a' for day agenda > 7. press 'b' and/or 'f' to move backwards and forward in time > > - how the bug shows up: the reoccurring meeting will show up yesterday > and in upcoming days, but not in the current day This is the consequence of `org-agenda-prefer-last-repeat' default value. However, this behaviour doesn't make much sense when the entry is not a task (i.e., it hasn't any TODO keyword). In this case, `org-auto-repeat-maybe' doesn't apply, and the base date is never moved forward in time. I think that a nil `org-agenda-prefer-last-repeat' should display : - only the base date when the entry has a TODO keyword; - every repeat between base date and today, inclusive, otherwise. It also applies to SCHEDULED and DEADLINE repeaters. Behaviour with a non-nil value needs not be changed. WDYT? Regards, -- Nicolas Goaziou