emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] start-day is lost in clock report mode and log mode of cus


From: Carsten Dominik
Subject: Re: [Orgmode] start-day is lost in clock report mode and log mode of custom agenda view
Date: Thu, 25 Nov 2010 17:55:22 +0100

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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

[Prev in Thread] Current Thread [Next in Thread]