From: Carsten Dominik <carsten.dominik@gmail.com>
To: PT <spamfilteraccount@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Refreshing custom agenda view ignores daily setting
Date: Thu, 10 Sep 2009 22:40:51 +0200 [thread overview]
Message-ID: <D32180B7-BF41-47F0-BB7E-1671BB3A9D1F@gmail.com> (raw)
In-Reply-To: <loom.20090908T084943-571@post.gmane.org>
On Sep 8, 2009, at 8:58 AM, PT wrote:
> If I open the builtin agenda view with a M-1 prefix I see the
> entries for the current day. When I press "g" then the view is
> refreshed properly.
>
> If I define a custom agenda
>
>
> (setq org-agenda-custom-commands
> '(("h" "Agenda and todo"
> ((agenda "")
> (alltodo "")))))
>
>
> and invoke it with a M-1 prefix then it shows my daily agenda
> entries and the global todo items under it. If I press "g" here then
> the view is refreshed, but the agenda view forgets I invoked it with
> a prefix and shows a weekly agenda above the todo list, instead of a
> daily one.
>
Hi PT,
yes, the prefix argument is not preserved in his case.
You can add a setting for org-agenda-ndays to the option settings
for the agenda command (untested):
(setq org-agenda-custom-commands
'(("h" "Agenda and todo"
((agenda "" ((org-agenda-ndays 1)))
(alltodo "")))))
HTH
- Carsten
prev parent reply other threads:[~2009-09-10 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-08 6:58 Refreshing custom agenda view ignores daily setting PT
2009-09-10 20:40 ` Carsten Dominik [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D32180B7-BF41-47F0-BB7E-1671BB3A9D1F@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=spamfilteraccount@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.