* start-day is lost in clock report mode and log mode of custom agenda view
@ 2010-11-08 6:10 Liang Wang
2010-11-08 6:25 ` Liang Wang
2010-11-25 16:55 ` Carsten Dominik
0 siblings, 2 replies; 5+ messages in thread
From: Liang Wang @ 2010-11-08 6:10 UTC (permalink / raw)
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: start-day is lost in clock report mode and log mode of custom agenda view
2010-11-08 6:10 start-day is lost in clock report mode and log mode of custom agenda view Liang Wang
@ 2010-11-08 6:25 ` Liang Wang
2010-11-21 13:47 ` Flavio Souza
2010-11-25 16:55 ` Carsten Dominik
1 sibling, 1 reply; 5+ messages in thread
From: Liang Wang @ 2010-11-08 6:25 UTC (permalink / raw)
To: emacs-orgmode
Liang Wang <netcasper <at> gmail.com> writes:
>
>
> 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.
Let me make it clear.
For example, I'm look at 2010-11-01 in this custom agenda view.
I want to look at clock report so I press R. But this custom
agenda view goes to today. For me, it's 2010-11-08. I have to
go back manually to 2010-11-01 to see clock report.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: start-day is lost in clock report mode and log mode of custom agenda view
2010-11-08 6:25 ` Liang Wang
@ 2010-11-21 13:47 ` Flavio Souza
0 siblings, 0 replies; 5+ messages in thread
From: Flavio Souza @ 2010-11-21 13:47 UTC (permalink / raw)
To: emacs-orgmode
Liang Wang <netcasper@gmail.com> writes:
> Liang Wang <netcasper <at> gmail.com> writes:
> For example, I'm look at 2010-11-01 in this custom agenda view.
> I want to look at clock report so I press R. But this custom
> agenda view goes to today. For me, it's 2010-11-08. I have to
> go back manually to 2010-11-01 to see clock report.
I do experience the same behavior sometimes.
Altough it is not a big issue for me.
But sometimes I am on agenda view and go back a few days.
Then I realize I want to take a look at how I spent my time on that
day. I use "R" to see it. But agenda goes all the way back to today.
It could be easier if the "R" stayed on the current day where "R" is called.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: start-day is lost in clock report mode and log mode of custom agenda view
2010-11-08 6:10 start-day is lost in clock report mode and log mode of custom agenda view Liang Wang
2010-11-08 6:25 ` Liang Wang
@ 2010-11-25 16:55 ` Carsten Dominik
2010-11-26 1:10 ` 王亮
1 sibling, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2010-11-25 16:55 UTC (permalink / raw)
To: Liang Wang; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: start-day is lost in clock report mode and log mode of custom agenda view
2010-11-25 16:55 ` Carsten Dominik
@ 2010-11-26 1:10 ` 王亮
0 siblings, 0 replies; 5+ messages in thread
From: 王亮 @ 2010-11-26 1:10 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Hi Carsten,
Thanks, I see. I don't know usage of multiple agendas before.
On Fri, Nov 26, 2010 at 12:55 AM, Carsten Dominik
<carsten.dominik@gmail.com> wrote:
>
> 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.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-11-26 1:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 6:10 start-day is lost in clock report mode and log mode of custom agenda view Liang Wang
2010-11-08 6:25 ` Liang Wang
2010-11-21 13:47 ` Flavio Souza
2010-11-25 16:55 ` Carsten Dominik
2010-11-26 1:10 ` 王亮
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).