From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: start-day is lost in clock report mode and log mode of custom agenda view Date: Thu, 25 Nov 2010 17:55:22 +0100 Message-ID: <79EEDD29-CB98-4BA7-BDB5-C0F1E4E49A3C@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57312 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLjRc-0003cV-Im for emacs-orgmode@gnu.org; Thu, 25 Nov 2010 16:33:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLjRX-0002AK-HN for emacs-orgmode@gnu.org; Thu, 25 Nov 2010 16:33:32 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:56194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLjRX-0002AG-Cl for emacs-orgmode@gnu.org; Thu, 25 Nov 2010 16:33:27 -0500 Received: by ewy27 with SMTP id 27so9598181ewy.0 for ; Thu, 25 Nov 2010 13:33:26 -0800 (PST) In-Reply-To: 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: Liang Wang Cc: emacs-orgmode@gnu.org Hi Liang, the reason that this is not working here is that you are using a block agenda, which in principle can contain a number of agenda view in a simple buffer. If could, for example, contain this weeks agenda, and the agenda of the same week a year ago - or whatever you want. Since Org knows little about what might happen in the block, the command to refresh the current view is simply to call the entire block agenda again. You can see this when looking at the value of the variable org-agenda-redo command in the agenda buffer. ---------------------------------------------------------------------- org-agenda-redo-command is a variable defined in `org-agenda.el'. Its value is (org-run-agenda-series "Calendar" '(((agenda "" ((org-agenda-ndays 1) (org-deadline-warning-days 7)))))) ---------------------------------------------------------------------- Thus there is no memory of the starting day for the agenda list. If you would not use a block view, but instead a simple agenda list (setq org-agenda-custom-commands '(("g" "Calendar" agenda "" ((org-agenda-ndays 1) (org-deadline-warning-days 7))))) and press "b" to go back in time a few time, you will see that the redo command is now: ---------------------------------------------------------------------- org-agenda-redo-command is a variable defined in `org-agenda.el'. Its value is (org-agenda-list 'nil 734100 1) ---------------------------------------------------------------------- which does contain a memory of the starting day (the number 734100). So in this case Org understands the command well and is able to reproduce the view correctly. The reason why this comes into play when switching to clock report is that the "R" key toggles a flag and then requilds the entire agenda, this time with clock report. Hope this makes it clear and offers a way out. - Carsten On Nov 8, 2010, at 7:10 AM, Liang Wang wrote: > > Hi, > > I have a custom agenda view like this, > > ("g" "Calendar" > ((agenda "" ((org-agenda-ndays 1) > (org-deadline-warning-days 7))))) > > When I press R to show clock report or l to show log mode, it always > goes to today. So I get information about today but this is not what > I want. It seems that start-day information is lost for this custom > agenda view. > > The default C-c a a does not have this issue. > > Thanks, > Liang. > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode