From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Habits bug? Date: Thu, 11 Nov 2010 07:07:07 -0500 Message-ID: <8739r8gj2s.fsf@fastmail.fm> References: <4CD97293.2060002@alum.mit.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=51743 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGVvt-0005Or-Ta for emacs-orgmode@gnu.org; Thu, 11 Nov 2010 07:07:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGVvs-0001zT-OJ for emacs-orgmode@gnu.org; Thu, 11 Nov 2010 07:07:13 -0500 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:53534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGVvs-0001xz-MP for emacs-orgmode@gnu.org; Thu, 11 Nov 2010 07:07:12 -0500 In-Reply-To: <4CD97293.2060002@alum.mit.edu> (Robert Horn's message of "Tue, 09 Nov 2010 11:10:59 -0500") 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: rjhorn@alum.mit.edu Cc: emacs-orgmode@gnu.org Robert Horn writes: > I just noticed the following oddity. > > 1.) I have a custom agenda that consists of: > > (setq org-agenda-custom-commands > '(("h" "Agenda and This Week tasks" > ((agenda "") > (todo "THISWEEK"))))) > > 2.) I have the default agenda period of 1 week at startup. > > The behavior I see is: > > a) When I do the C-c a h, I get the entire week, including the habits > and habit bars at the end of the section for today (somewhere mid-week) > > b) If I type "d" to go into daily mode, the scheduled and extra todo's > that are "THISWEEK" are shown. But the habits and habit bars are not > present. > > c) When I repeat C-c a h to regenerate, it stays in the daily mode (as > it should) and the habits and habit bars re-appear. > > This is odd, and probably reflects a subtle bug somewhere in the > regeneration logic for changing the agenda period. It's not a critical > issue, since the work around is so easy, but someone who understands > that stretch of code might see it easily. I cannot reproduce this. I tried your custom command above (tweaked to use one of my TODO keywords --- STARTED). The habits consistently appeared when switching back and forth between day and week views. Would it be possible to provide a minimal file and config that reproduces the error? Best, Matt