emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Liang Wang <netcasper@gmail.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <79EEDD29-CB98-4BA7-BDB5-C0F1E4E49A3C@gmail.com> (raw)
In-Reply-To: <loom.20101108T070410-607@post.gmane.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

  parent reply	other threads:[~2010-11-25 21:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2010-11-26  1:10   ` 王亮

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=79EEDD29-CB98-4BA7-BDB5-C0F1E4E49A3C@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=netcasper@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).